#25569: Add a friendly error report when using select_related() on a reverse
relation
-------------------------------------+-------------------------------------
Reporter: Shai Berger | Owner: Vincent
| Perez
Type: New feature | Status: assigned
Component: Database layer | Version: 1.8
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):
* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted
Comment:
I don't know, the ticket's description didn't include the actual message
so it seems to was tough to evaluate the ticket. We're not going to
backport a fix at this point.
If "Invalid field name(s) given in select_related:" isn't specific enough,
how about something like "Non-single value relation given in
select_related:".
Anyway, I'll take another look at the PR however you'd like to amend it.
--
Ticket URL: <https://code.djangoproject.com/ticket/25569#comment:15>
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/063.86ee538bab7660a6a7b7c72bfa84b7b0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.