diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-10 18:57:07 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-10 18:57:07 +0200 |
commit | ba7bebd6918c6073da42caf66cca0375fc1a2fc1 (patch) | |
tree | dd9ea20acb8a6eb5a8bfbb0dbc5213f494db3277 /archaeological_operations/wizards.py | |
parent | 219cb5b1308c2e3ac5f8de98993de2660b309a30 (diff) | |
download | Ishtar-ba7bebd6918c6073da42caf66cca0375fc1a2fc1.tar.bz2 Ishtar-ba7bebd6918c6073da42caf66cca0375fc1a2fc1.zip |
Fix many parcel removing
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r-- | archaeological_operations/wizards.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index 83bf3f21c..419cac895 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -157,7 +157,7 @@ class OperationWizard(Wizard): except (ValueError, IndexError): continue keys.add(items[-1]) - if numbers and max(numbers) - 1: + if numbers and max(numbers) - 1 > 0: initial = [dict([(k, data[step+'-'+unicode(max(numbers)-1)+'-'+k]) for k in keys if k != 'parcel_number'])] self.form_initialized = True |