#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:"de570d4da9447ebef253519c2473d3b4f6fb2bea" de570d4]:
{{{
#!CommitTicketReference repository=""
revision="de570d4da9447ebef253519c2473d3b4f6fb2bea"
[1.8.x] Fixed #25496 -- Made ModelChoiceField respect prefetch_related().
Backport of 6afa6818fcf25665bbf61f0921c8c8c6fa8f223e from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25496#comment:10>
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.cd153bfabcace0a4f2d031f0426ef8eb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.