#22508: select_related on a foreign related object fails to load fields on 
original
object
-------------------------------------+-------------------------------------
     Reporter:  boxm                 |                    Owner:  aaugustin
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.6
  (models, ORM)                      |               Resolution:  fixed
     Severity:  Normal               |             Triage Stage:  Ready for
     Keywords:                       |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Aymeric Augustin <aymeric.augustin@…>):

 In [changeset:"b6d3212190b114f1ef90d7ee9edcdae046432779"]:
 {{{
 #!CommitTicketReference repository=""
 revision="b6d3212190b114f1ef90d7ee9edcdae046432779"
 [1.6.x] Fixed #22508 -- Avoided overwriting select_related.

 Previously, known related objects overwrote related objects loaded
 though select_related. This could cancel the effect of select_related
 when it was used over more than one level.

 Thanks boxm for the bug report and timo for bisecting the regression.

 Conflicts:
         tests/select_related_regress/tests.py

 Backport of f574220f from master
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22508#comment:9>
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/062.cc211c552ca1854e67264ec6ab16410e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to