summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_operations/wizards.py2
-rw-r--r--example_project/settings.py1
2 files changed, 2 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
diff --git a/example_project/settings.py b/example_project/settings.py
index febed6a61..5b333de1d 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -19,6 +19,7 @@ DEBUG = 1
TEMPLATE_DEBUG = DEBUG
AUTH_PROFILE_MODULE = 'ishtar_common.IshtarUser'
+ACCOUNT_ACTIVATION_DAYS = 7
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name