summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-12-30 16:59:44 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-05-06 15:38:32 +0200
commit25ec2a9794786ac83fa8ce743078305682d8298d (patch)
tree52e8f0c1333377628b60f0feefad64861980519f /ishtar_common/wizards.py
parent155b3890c7938e98f6c1596551260a92041bea68 (diff)
downloadIshtar-25ec2a9794786ac83fa8ce743078305682d8298d.tar.bz2
Ishtar-25ec2a9794786ac83fa8ce743078305682d8298d.zip
Work on new town field (with state and department) - work on new UI for files
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 190a7fc86..2ad3635d7 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -95,8 +95,11 @@ class Wizard(NamedUrlWizardView):
def get_template_names(self):
templates = ['ishtar/wizard/default_wizard.html']
current_step = self.steps.current
- if current_step in self.wizard_templates:
- templates = [self.wizard_templates[current_step]] + templates
+ wizard_templates = dict([
+ (key % {'url_name':self.url_name}, self.wizard_templates[key])
+ for key in self.wizard_templates])
+ if current_step in wizard_templates:
+ templates = [wizard_templates[current_step]] + templates
elif current_step == self.steps.last:
templates = ['ishtar/wizard/confirm_wizard.html'] + templates
return templates