Ticket #13951: ticket_13951.patch

File ticket_13951.patch, 657 bytes (added by Łukasz Rekucki, 14 years ago)

Rebased the batch to source tree root.

  • django/contrib/formtools/wizard.py

    diff --git a/django/contrib/formtools/wizard.py b/django/contrib/formtools/wizard.py
    index 02d8fd7..a57c34b 100644
    a b class FormWizard(object):  
    4848
    4949    def num_steps(self):
    5050        "Helper method that returns the number of steps."
    51         # You might think we should just set "self.form_list = len(form_list)"
     51        # You might think we should just set "self.num_steps = len(form_list)"
    5252        # in __init__(), but this calculation needs to be dynamic, because some
    5353        # hook methods might alter self.form_list.
    5454        return len(self.form_list)
Back to Top