summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-04-04 10:18:02 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2014-04-04 10:18:02 +0200
commitf953a3e143a49704d26c5b285d80c1be61cc9f25 (patch)
tree858b51b65551fd32395bd4c170c42b6df372c13d /archaeological_operations/wizards.py
parent43af6dd9f95936284581275f3b762f81e032960b (diff)
downloadIshtar-f953a3e143a49704d26c5b285d80c1be61cc9f25.tar.bz2
Ishtar-f953a3e143a49704d26c5b285d80c1be61cc9f25.zip
Fix town/parcel selection on operation creation (refs #1745)
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r--archaeological_operations/wizards.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index 821d5eedc..eb6788ac4 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -74,7 +74,7 @@ class OperationWizard(Wizard):
context = super(OperationWizard, self).get_context_data(form,
**kwargs)
step = self.steps.current
- if step.startswith('towns-'):
+ if step.startswith('towns'):
context['TOWNS'] = self.get_towns()
elif step.startswith('parcels-') and self.get_current_file():
# if a file is acciated to the operation add the button "Add all"
@@ -135,7 +135,7 @@ class OperationWizard(Wizard):
if self.url_name == 'operation_creation':
file_form_key = 'filechoice-' + self.url_name
# manage the dynamic choice of towns
- if step.startswith('towns-') and hasattr(form, 'management_form'):
+ if step.startswith('towns') and hasattr(form, 'management_form'):
data['TOWNS'] = self.get_towns()
elif step.startswith('parcels') and hasattr(form, 'management_form'):
file_id = self.session_get_value(file_form_key, "associated_file")