summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2010-10-20 08:02:07 +0000
committerLuke Plant <L.Plant.98@cantab.net>2010-10-20 08:02:07 +0000
commitf71f31228339fadd6a4d9c11d8755cfb420152bf (patch)
tree7a002db97b3fc12cfb076a7684e8a58bc42a415d
parenta7a91c2d40e31eb2e054a5c33e63324a80fe2d59 (diff)
[1.2.X] Fixed bug and test failure introducted in [14290]
Thanks Russell for alerting me. Backport of [14294] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14295 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 97d2fb8e34..f86dbad70b 100644
--- a/django/contrib/formtools/wizard.py
+++ b/django/contrib/formtools/wizard.py
@@ -110,8 +110,8 @@ class FormWizard(object):
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