#17001: Allow usage of custom querysets in prefetch_related
-------------------------------------+-------------------------------------
     Reporter:  akaariai             |                    Owner:  loic84
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:  fixed
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  prefetch_related     |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by Loic Bistuer <loic.bistuer@…>):

 In [changeset:"bdf3473e64879d196e79fe8832cdacc6efb68150"]:
 {{{
 #!CommitTicketReference repository=""
 revision="bdf3473e64879d196e79fe8832cdacc6efb68150"
 Fixed #22650 -- Fixed regression on prefetch_related.

 Regression from f51c1f59 when using select_related then prefetch_related
 on the reverse side of an O2O:

 Author.objects.select_related('bio').prefetch_related('bio__books')

 Thanks Aymeric Augustin for the report and tests. Refs #17001.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17001#comment:48>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.437ee2b3537716e2b5d120c9cd71f5f7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to