summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2010-10-20 07:59:17 +0000
committerLuke Plant <L.Plant.98@cantab.net>2010-10-20 07:59:17 +0000
commit7d0d3b68d67810cd3b41c4ae5ccfd52de2e93913 (patch)
tree641641dc4cebb8c84f51a47a1a32685ada3cc2b7
parentcfc19f84def07fb950ae8789ed0655eae4f66a92 (diff)
Fixed bug and test failure introducted in [14290]
Thanks Russell for alerting me. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-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