From 219cb5b1308c2e3ac5f8de98993de2660b309a30 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 10 Apr 2013 18:37:57 +0200 Subject: Fix crash on file creation (fixes #1212) --- archaeological_operations/wizards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index 4205144e6..83bf3f21c 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: initial = [dict([(k, data[step+'-'+unicode(max(numbers)-1)+'-'+k]) for k in keys if k != 'parcel_number'])] self.form_initialized = True -- cgit v1.2.3 From ba7bebd6918c6073da42caf66cca0375fc1a2fc1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 10 Apr 2013 18:57:07 +0200 Subject: Fix many parcel removing --- archaeological_operations/wizards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3 From 34fe6db2c9b109748cfb6e217848336d7f2c1392 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 11 Apr 2013 16:58:50 +0200 Subject: Default value for ACTIVATION_DAY (closes #568) --- example_project/settings.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3