#25252: Add a friendly error message when using Queryset.select_related() after
values()
-------------------------------------+-------------------------------------
Reporter: 2roy999 | Owner: Y3K
Type: | Status: closed
Cleanup/optimization |
Component: Database layer | Version: 1.8
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: queryset values | Triage Stage: Accepted
select_related |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Josh Smeaton <josh.smeaton@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"cbcf78fa949091e037861d66d942d7fb31d57bf6" cbcf78fa]:
{{{
#!CommitTicketReference repository=""
revision="cbcf78fa949091e037861d66d942d7fb31d57bf6"
Fixed #25252 -- Added friendly error message on incorrect
.select_related() use
Using select_related() after .values() or .values_list() is not possible
because .values() or .values_list() already got the values they need.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25252#comment:4>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.50db9b1ce2df74a42c470a88007a991f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.