Opened 8 years ago

Closed 8 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 Tim Graham, 8 years ago

Has patch: set
Reporter: changed from dsanders11 to David Sanders
Triage Stage: UnreviewedReady for checkin

comment:2 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: newclosed

In 5ec64f96:

Fixed #26734 -- Made iterator class configurable on ModelChoiceField.

Note: See TracTickets for help on using tickets.
Back to Top