Opened 10 years ago

Last modified 10 years ago

#23550 closed Cleanup/optimization

Normalize implementation of SingleRelatedObjectDescriptor.get_queryset() and ReverseSingleRelatedObjectDescriptor.get_queryset(). — at Initial Version

Reported by: Loic Bistuer Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

ReverseSingleRelatedObjectDescriptor.get_queryset() instantiates a QuerySet directly which is problematic because it doesn't account for custom QuerySet types and SingleRelatedObjectDescriptor.get_queryset() doesn't honor use_for_related_fields which is inconsistent with ReverseSingleRelatedObjectDescriptor.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top