Skip to content

Commit

Permalink
Fixed bug and test failure introducted in [14290]
Browse files Browse the repository at this point in the history
Thanks Russell for alerting me.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
spookylukey committed Oct 20, 2010
1 parent cfc19f8 commit 7d0d3b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/formtools/wizard.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def __call__(self, request, *args, **kwargs):
self.process_step(request, form, current_step) self.process_step(request, form, current_step)
next_step = current_step + 1 next_step = current_step + 1


if current_step == self.num_steps(): if next_step == self.num_steps():
return self.done(request, final_form_list) return self.done(request, current_form_list)
else: else:
form = self.get_form(next_step) form = self.get_form(next_step)
self.step = current_step = next_step self.step = current_step = next_step
Expand Down

0 comments on commit 7d0d3b6

Please sign in to comment.