Code

Ticket #10606: admindocs.diff

File admindocs.diff, 686 bytes (added by gvangool, 5 years ago)
Line 
1Index: django/contrib/formtools/wizard.py
2===================================================================
3--- django/contrib/formtools/wizard.py  (revision 10160)
4+++ django/contrib/formtools/wizard.py  (working copy)
5@@ -33,6 +33,10 @@
6     def __repr__(self):
7         return "step: %d\nform_list: %s\ninitial_data: %s" % (self.step, self.form_list, self.initial)
8 
9+    @property
10+    def __name__(self):
11+        return self.__class__.__name__
12+
13     def get_form(self, step, data=None):
14         "Helper method that returns the Form instance for the given step."
15         return self.form_list[step](data, prefix=self.prefix_for_step(step), initial=self.initial.get(step, None))