#34458: QuerySet.defer('user_id') raises AttributeError: 'ForeignKey' object 
has no
attribute 'field'
-------------------------------------+-------------------------------------
     Reporter:  Andrew Cordery       |                    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:"647920b76694526c6be0375ff22e4d6ee43c9580" 647920b]:
 {{{
 #!CommitTicketReference repository=""
 revision="647920b76694526c6be0375ff22e4d6ee43c9580"
 [4.2.x] Fixed #34458 -- Fixed QuerySet.defer() crash on attribute names.

 Thanks Andrew Cordery for the report.

 Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879.

 Backport of 87c63bd8df0eb0109df333df1264c6a96707d6a4 from main
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34458#comment:7>
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/010701874f98b4da-2f64f90f-9be1-44c6-a054-fbf35c926d23-000000%40eu-central-1.amazonses.com.

Reply via email to