diff options
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 |
commit | 3e14b1202b3435113d070fa53f93ab62b2833c8d (patch) | |
tree | 502ce32ca69676471356322b03f3a83febd9caec /archaeological_files | |
parent | c943fb4cbfa56163f93f88e50614613839fc77c8 (diff) | |
download | Ishtar-3e14b1202b3435113d070fa53f93ab62b2833c8d.tar.bz2 Ishtar-3e14b1202b3435113d070fa53f93ab62b2833c8d.zip |
Manage treatment with no creation new of item
Diffstat (limited to 'archaeological_files')
-rw-r--r-- | archaeological_files/wizards.py | 4 |
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"] |