File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 16
16
from django .contrib .formtools .utils import security_hash
17
17
18
18
class FormWizard (object ):
19
- # Dictionary of extra template context variables.
20
- extra_context = {}
21
-
22
19
# The HTML (and POST data) field name for the "step" variable.
23
20
step_field_name = "wizard_step"
24
21
25
22
# METHODS SUBCLASSES SHOULDN'T OVERRIDE ###################################
26
23
27
24
def __init__ (self , form_list , initial = None ):
28
- "form_list should be a list of Form classes (not instances)."
25
+ """
26
+ Start a new wizard with a list of forms.
27
+
28
+ form_list should be a list of Form classes (not instances).
29
+ """
29
30
self .form_list = form_list [:]
30
31
self .initial = initial or {}
31
- self .step = 0 # A zero-based counter keeping track of which step we're in.
32
+
33
+ # Dictionary of extra template context variables.
34
+ extra_context = {}
35
+
36
+ # A zero-based counter keeping track of which step we're in.
37
+ self .step = 0
32
38
33
39
def __repr__ (self ):
34
40
return "step: %d\n form_list: %s\n initial_data: %s" % (self .step , self .form_list , self .initial )
You can’t perform that action at this time.
0 commit comments