From f953a3e143a49704d26c5b285d80c1be61cc9f25 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 4 Apr 2014 10:18:02 +0200 Subject: Fix town/parcel selection on operation creation (refs #1745) --- archaeological_operations/wizards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archaeological_operations/wizards.py') 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") -- cgit v1.2.3