Re: [Django] #36135: Prefetching a reverse GenericRelation raises AttributeError (was: Prefetching a GenericRelation raises AttributeError)

7 views
Skip to first unread message

Django

unread,
Jan 24, 2025, 1:26:09 PM1/24/25
to django-...@googlegroups.com
#36135: Prefetching a reverse GenericRelation raises AttributeError
--------------------------------------+------------------------------------
Reporter: john | Owner: (none)
Type: Bug | Status: new
Component: contrib.contenttypes | Version: 5.1
Severity: Normal | Resolution:
Keywords: prefetch | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Simon Charette):

* summary: Prefetching a GenericRelation raises AttributeError =>
Prefetching a reverse GenericRelation raises AttributeError

Comment:

Changing the title as direct `GenericRelation` fetching works but their
reverse, as defined by `related_query_name`, doesn't.
--
Ticket URL: <https://code.djangoproject.com/ticket/36135#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages