Ticket #10606: admindocs.diff

File admindocs.diff, 686 bytes (added by Gert Van Gool, 15 years ago)
  • django/contrib/formtools/wizard.py

     
    3333    def __repr__(self):
    3434        return "step: %d\nform_list: %s\ninitial_data: %s" % (self.step, self.form_list, self.initial)
    3535
     36    @property
     37    def __name__(self):
     38        return self.__class__.__name__
     39
    3640    def get_form(self, step, data=None):
    3741        "Helper method that returns the Form instance for the given step."
    3842        return self.form_list[step](data, prefix=self.prefix_for_step(step), initial=self.initial.get(step, None))
Back to Top