Opened 13 years ago
Closed 13 years ago
#17493 closed Cleanup/optimization (fixed)
Widget.id_for_label() should be an instance method
Description ¶
I don't see any reason why Widget.id_for_label()
should be a class method. What's more, it's actually already used as an instance method in some places. I suggest simply removing the classmethod
decorators (see patch attached).
Change History (4)
by , 13 years ago
Attachment: | 17493.diff added |
---|
comment:1 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 13 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
I don't see any good reason either for this to be a class method. Small change still needed in a doc string in forms/forms.py: "Wrapper around the field widget's
id_for_label
class method." (remove "class")