Re: [Django] #34458: QuerySet.defer('user_id') raises AttributeError: 'ForeignKey' object has no attribute 'field' (was: Calling defer('user_id') instead of defer('user') will raise AttributeError: 'ForeignKey' object has no attribute 'field')

14 views
Skip to first unread message

Django

unread,
Apr 4, 2023, 1:33:08 PM4/4/23
to django-...@googlegroups.com
#34458: QuerySet.defer('user_id') raises AttributeError: 'ForeignKey' object has no
attribute 'field'
-------------------------------------+-------------------------------------
Reporter: Andrew Cordery | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Simon Charette (added)
* severity: Normal => Release blocker


Comment:

Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879.

--
Ticket URL: <https://code.djangoproject.com/ticket/34458#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages