Opened 17 years ago
Closed 17 years ago
#10324 closed (invalid)
Fields in django.forms.models should accept QuerySet in initial arg
| Reported by: | Sayane | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
For now fields in django.forms.models as initial data accepts only list/tuple of primary keys. I think it should be more intuitive and accept also QuerySet objects. I had big problem with this today, because I was shure it accepts QuerySets as for example queryset argument does. Sorry for my english.
Note:
See TracTickets
for help on using tickets.
Both ModelChoiceField and MultipleModelChoiceField accept queryset args.