#17696: Queryset prefetch_related() ignores using()
-------------------------------------+-------------------------------------
Reporter: simon29 | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: SVN
(models, ORM) | Resolution:
Severity: Normal | Triage Stage:
Keywords: prefetch_related | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by akaariai):
* needs_docs: => 0
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
There is a small problem with altering the behavior. Currently, what
prefetch_related does is it fetches the related queryset. Now, if that
related queryset has .using() defined, then it must not use the .using()
of the outer queryset.
Maybe the related qs should use the .using() of the outer queryset only if
there is no .using() defined for the related queryset?
--
Ticket URL: <https://code.djangoproject.com/ticket/17696#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.