[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
This commit is contained in:
Luke Plant 2010-10-20 08:02:07 +00:00
parent a7a91c2d40
commit f71f312283
1 changed files with 2 additions and 2 deletions

View File

@ -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