1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

[1.2.X] Fixed #13951 -- Corrected docstring in formtools wizard. Thanks to suzaku for the report, and lrekucki for the patch.

Backport of r13630 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13631 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2010-08-23 08:12:17 +00:00
parent e47520b8ba
commit 2bbcb1a821

View File

@ -48,7 +48,7 @@ class FormWizard(object):
def num_steps(self): def num_steps(self):
"Helper method that returns the number of steps." "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 # in __init__(), but this calculation needs to be dynamic, because some
# hook methods might alter self.form_list. # hook methods might alter self.form_list.
return len(self.form_list) return len(self.form_list)