#25496: ModelChoiceField generates extra queries by not respecting
prefetch_related
-------------------------------------+-------------------------------------
Reporter: mdentremont | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 1.8
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham <timograham@…>):
In [changeset:"8db5122d6937bfcaf9a5894ba8f329d2a4424ca5" 8db5122d]:
{{{
#!CommitTicketReference repository=""
revision="8db5122d6937bfcaf9a5894ba8f329d2a4424ca5"
[1.9.x] Fixed #25683 -- Allowed ModelChoiceField(queryset=...) to accept
Managers.
This fixes a regression from refs #25496.
Backport of 1155843a41af589a856efe8e671a796866430049 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25496#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.ce05dba4a0b252367caf8d325b0f328c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.