Ticket #11726: django-11726.diff
File django-11726.diff, 1.0 KB (added by , 14 years ago) |
---|
-
django/contrib/formtools/wizard.py
64 64 current_step = self.determine_step(request, *args, **kwargs) 65 65 self.parse_params(request, *args, **kwargs) 66 66 67 # Sanity check.68 if current_step >= self.num_steps():69 raise Http404('Step %s does not exist' % current_step)70 71 67 # For each previous step, verify the hash and process. 72 68 # TODO: Move "hash_%d" to a method to make it configurable. 73 69 for i in range(current_step): … … 83 79 else: 84 80 form = self.get_form(current_step) 85 81 if form.is_valid(): 82 # Sanity check. 83 if current_step >= self.num_steps(): 84 raise Http404('Step %s does not exist' % current_step) 85 86 86 self.process_step(request, form, current_step) 87 87 next_step = current_step + 1 88 88