Ticket #11044: formwizard_extra_context_fix.diff
File formwizard_extra_context_fix.diff, 905 bytes (added by , 16 years ago) |
---|
-
django/contrib/formtools/wizard.py
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 … … 26 23 27 24 def __init__(self, form_list, initial=None): 28 25 "form_list should be a list of Form classes (not instances)." 26 # Dictionary of extra template context variables. 27 self.extra_context = {} 29 28 self.form_list = form_list[:] 30 29 self.initial = initial or {} 31 30 self.step = 0 # A zero-based counter keeping track of which step we're in.