Ticket #10606: admindocs.diff
File admindocs.diff, 686 bytes (added by , 16 years ago) |
---|
-
django/contrib/formtools/wizard.py
33 33 def __repr__(self): 34 34 return "step: %d\nform_list: %s\ninitial_data: %s" % (self.step, self.form_list, self.initial) 35 35 36 @property 37 def __name__(self): 38 return self.__class__.__name__ 39 36 40 def get_form(self, step, data=None): 37 41 "Helper method that returns the Form instance for the given step." 38 42 return self.form_list[step](data, prefix=self.prefix_for_step(step), initial=self.initial.get(step, None))