Opened 17 years ago

Closed 17 years ago

#5070 closed (wontfix)

newforms: Default arguments for QuerySetIterator

Reported by: Thomas Güttler <hv@…> Owned by: Adrian Holovaty
Component: Forms Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



I think default for the QuerySetIterator would be good::

class QuerySetIterator(object):

def init(self, queryset, empty_label=u"---------", cache_choices=False):

Attachments (1)

newforms-models-querysetinterator.diff (591 bytes ) - added by Thomas Güttler <hv@…> 17 years ago.

Download all attachments as: .zip

Change History (2)

by Thomas Güttler <hv@…>, 17 years ago

comment:1 by Adrian Holovaty, 17 years ago

Resolution: wontfix
Status: newclosed

I don't see what benefit this brings us, because calling code is supposed to use ModelChoiceField, not access QuerySetIterator directly. The latter is not documented.

And there's a maintainability advantage in only including the default arguments in one place.

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