#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:"3144785ebf9fdc19639ef3d35267283f5c2f321a" 3144785]:
 {{{
 #!CommitTicketReference repository=""
 revision="3144785ebf9fdc19639ef3d35267283f5c2f321a"
 [1.8.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:14>
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.af86c959cca1427269d47a4481ce5bc9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to