summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/formtools/wizard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/formtools/wizard.py b/django/contrib/formtools/wizard.py
index be675cb7c4..d382e297c5 100644
--- a/django/contrib/formtools/wizard.py
+++ b/django/contrib/formtools/wizard.py
@@ -131,8 +131,8 @@ class FormWizard(object):
self.process_step(request, form, current_step)
next_step = current_step + 1
- if current_step == self.num_steps():
- return self.done(request, final_form_list)
+ if next_step == self.num_steps():
+ return self.done(request, current_form_list)
else:
form = self.get_form(next_step)
self.step = current_step = next_step