summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
diff options
context:
space:
mode:
authorroot <root@viserion.(none)>2013-04-11 14:59:59 +0000
committerroot <root@viserion.(none)>2013-04-11 14:59:59 +0000
commit6235aa64139d746b4d5d8c5afdaecef8a40196e3 (patch)
treed6572bac802f13f4dd55dc1f8bace322b1e868ee /archaeological_operations/wizards.py
parent925ebdeb50d7e88b5879e34b5cc3d1cf1529ad84 (diff)
parent8302cf66364af91bb147ddd9148475cf35800d0c (diff)
downloadIshtar-6235aa64139d746b4d5d8c5afdaecef8a40196e3.tar.bz2
Ishtar-6235aa64139d746b4d5d8c5afdaecef8a40196e3.zip
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r--archaeological_operations/wizards.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index 4205144e6..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 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