Author: russellm
Date: 2010-08-23 03:11:24 -0500 (Mon, 23 Aug 2010)
New Revision: 13630

Modified:
   django/trunk/django/contrib/formtools/wizard.py
Log:
Fixed #13951 -- Corrected docstring in formtools wizard. Thanks to suzaku for 
the report, and lrekucki for the patch.

Modified: django/trunk/django/contrib/formtools/wizard.py
===================================================================
--- django/trunk/django/contrib/formtools/wizard.py     2010-08-23 08:08:46 UTC 
(rev 13629)
+++ django/trunk/django/contrib/formtools/wizard.py     2010-08-23 08:11:24 UTC 
(rev 13630)
@@ -27,7 +27,7 @@
     def __init__(self, form_list, initial=None):
         """
         Start a new wizard with a list of forms.
-        
+
         form_list should be a list of Form classes (not instances).
         """
         self.form_list = form_list[:]
@@ -37,7 +37,7 @@
         self.extra_context = {}
 
         # A zero-based counter keeping track of which step we're in.
-        self.step = 0 
+        self.step = 0
 
     def __repr__(self):
         return "step: %d\nform_list: %s\ninitial_data: %s" % (self.step, 
self.form_list, self.initial)
@@ -48,7 +48,7 @@
 
     def num_steps(self):
         "Helper method that returns the number of steps."
-        # You might think we should just set "self.form_list = len(form_list)"
+        # You might think we should just set "self.num_steps = len(form_list)"
         # in __init__(), but this calculation needs to be dynamic, because some
         # hook methods might alter self.form_list.
         return len(self.form_list)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to