#36116: prefetch_related() selects too many objects from a related table with a
composite primary key and hidden related name
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  Simon
         Type:                       |  Charette
  Cleanup/optimization               |                   Status:  closed
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     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 Sarah Boyce <42296566+sarahboyce@…>):

 In [changeset:"3340d4144605bd150906d070ae3e910941fa83c9" 3340d414]:
 {{{#!CommitTicketReference repository=""
 revision="3340d4144605bd150906d070ae3e910941fa83c9"
 [5.2.x] Fixed #36432 -- Fixed a prefetch_related crash on related target
 subclass queryset.

 Regression in 626d77e52a3f247358514bcf51c761283968099c.

 Refs #36116.

 Thanks Cornelis Poppema for the excellent report.

 Backport of 08187c94ed02c45ad40a32244dedeaa7ac71ca87 from main.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36116#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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701973a20e924-975b7185-8243-4f43-87c0-6d13aed7ebea-000000%40eu-central-1.amazonses.com.

Reply via email to