Opened 9 years ago
Closed 9 years ago
#26734 closed Cleanup/optimization (fixed)
Make iterator class configurable on ModelChoiceField
Reported by: | David Sanders | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently isn't trivial to change the iterator class used for a subclass of ModelChoiceField
since it is hardcoded in _get_choices
, which is then used in a property. This means a subclass has to duplicate code and create the property again to change the iterator class.
Change History (2)
comment:1 by , 9 years ago
Has patch: | set |
---|---|
Reporter: | changed from | to
Triage Stage: | Unreviewed → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
PR