summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-03 20:17:47 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-03 20:17:47 +0100
commit507d9eb44c328e13ffff26e4301d7e80bfc91f4d (patch)
treeb497011ebb4ea4b899eb3c5ebeae6af15c2816c4 /ishtar_common/wizards.py
parent7522e7a325fb8ebad5f20bbfb5253b4be24e2cd0 (diff)
parent4509e950fbe35e6f529c4469dfc7802686fce28e (diff)
downloadIshtar-507d9eb44c328e13ffff26e4301d7e80bfc91f4d.tar.bz2
Ishtar-507d9eb44c328e13ffff26e4301d7e80bfc91f4d.zip
Merge branch 'master' into v0.9
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py
index 031498ca3..ffbf9b994 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -188,9 +188,13 @@ class Wizard(NamedUrlWizardView):
self.request.session['CURRENT_ACTION'] = self.get_wizard_name()
step = self.steps.first
current_step = self.steps.current
- context.update({'current_step': self.form_list[current_step],
- 'wizard_label': self.label,
- 'current_object': self.get_current_object()})
+ dct = {'current_step': self.form_list[current_step],
+ 'wizard_label': self.label,
+ 'current_object': self.get_current_object(),
+ 'is_search': current_step.startswith('selec-')
+ if current_step else False
+ }
+ context.update(dct)
if step == current_step:
return context
previous_steps, next_steps, previous_step_counter = [], [], 0
@@ -988,6 +992,7 @@ class SearchWizard(NamedUrlWizardView):
self.request.session['CURRENT_ACTION'] = self.get_wizard_name()
current_step = self.steps.current
context.update({'current_step': self.form_list[current_step],
+ 'is_search': True,
'wizard_label': self.label})
return context