#34612: QuerySet.only() doesn't work with select_related() on a reverse
OneToOneField relation.
-------------------------------------+-------------------------------------
     Reporter:  Ian Cubitt           |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  4.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 Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"738386470d899c61cb1980233c1e7872ba78e679" 7383864]:
 {{{
 #!CommitTicketReference repository=""
 revision="738386470d899c61cb1980233c1e7872ba78e679"
 [4.2.x] Fixed #34612 -- Fixed QuerySet.only() crash on reverse
 relationships.

 Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879.

 Thanks Ian Cubitt for the report.

 This also corrected test_inheritance_deferred2() test which was
 previously properly defined and marked as an expected failure but was
 then wrongly adjusted to mask the lack of support for per-alias
 deferral that was fixed by #21204.

 Backport of 2cf76f2d5d1aa16acfadaf53db3d30128a34b088 from main
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34612#comment:6>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070188786e6e22-10db5769-53ac-4ec6-9b9c-e135c76d0a9c-000000%40eu-central-1.amazonses.com.

Reply via email to