summaryrefslogtreecommitdiff
path: root/archaeological_files/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-21 10:22:04 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-28 11:40:17 +0100
commite1dd8ec6a19febe27642dd2411aaaa1cf5c8bdaa (patch)
tree502ce32ca69676471356322b03f3a83febd9caec /archaeological_files/wizards.py
parent66c8c7fa80e2e1494a37503e86ccf2bb3188b87c (diff)
downloadIshtar-e1dd8ec6a19febe27642dd2411aaaa1cf5c8bdaa.tar.bz2
Ishtar-e1dd8ec6a19febe27642dd2411aaaa1cf5c8bdaa.zip
Manage treatment with no creation new of item
Diffstat (limited to 'archaeological_files/wizards.py')
-rw-r--r--archaeological_files/wizards.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_files/wizards.py b/archaeological_files/wizards.py
index 106008192..c9b1ba9c2 100644
--- a/archaeological_files/wizards.py
+++ b/archaeological_files/wizards.py
@@ -43,8 +43,8 @@ class FileWizard(OperationWizard):
town_step_keys = ['towns-']
wizard_done_window = reverse_lazy('show-file')
- def get_extra_model(self, dct, form_list):
- dct = super(FileWizard, self).get_extra_model(dct, form_list)
+ def get_extra_model(self, dct, m2m, form_list):
+ dct = super(FileWizard, self).get_extra_model(dct, m2m, form_list)
if not dct.get('numeric_reference'):
current_ref = models.File.objects.filter(year=dct['year'])\
.aggregate(Max('numeric_reference'))["numeric_reference__max"]