diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-04 20:49:29 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-04 20:49:29 +0200 |
commit | f41b22f173bb9c9c331fa9eab2a7a8d47d0a57db (patch) | |
tree | 673bfb7389360f360ddaafcfe1a4d133d67f4c36 /archaeological_operations/wizards.py | |
parent | 93de2ae2223f284431000c66ba7d94f6f73eb658 (diff) | |
download | Ishtar-f41b22f173bb9c9c331fa9eab2a7a8d47d0a57db.tar.bz2 Ishtar-f41b22f173bb9c9c331fa9eab2a7a8d47d0a57db.zip |
Inline formset to manage parcels
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r-- | archaeological_operations/wizards.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index 3281a5723..2b13e3353 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -34,9 +34,12 @@ class OperationWizard(Wizard): def get_template_names(self): templates = super(OperationWizard, self).get_template_names() - current_step = self.steps. current + current_step = self.steps.current if current_step.startswith('towns-'): templates = ['ishtar/wizard/towns_wizard.html'] + templates + if current_step.startswith('parcels-') or \ + current_step.startswith('parcelsgeneral-') : + templates = ['ishtar/wizard/parcels_wizard.html'] + templates return templates def get_context_data(self, form, **kwargs): |