summaryrefslogtreecommitdiff
path: root/ishtar/furnitures/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/furnitures/forms.py')
-rw-r--r--ishtar/furnitures/forms.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py
index 50a433191..7203e6bb8 100644
--- a/ishtar/furnitures/forms.py
+++ b/ishtar/furnitures/forms.py
@@ -296,7 +296,10 @@ class Wizard(NamedUrlSessionFormWizard):
and 'pk' in self.form_list[step].associated_models:
model_name = self.form_list[step].associated_models['pk'
].__name__.lower()
- self.reset_wizard(request, storage)
+ current_step = storage.get_current_step() or self.get_first_step(
+ request, storage)
+ if step == current_step:
+ self.reset_wizard(request, storage)
val = model_name in request.session and request.session[model_name]
if val:
return {'pk':val}