#23854: Add custom SelectRelated classes
-------------------------------------+-------------------------------------
Reporter: akaariai | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by carljm):
Anssi, can you explain why you think this functionality should be part of
`.select_related()` rather than part of `.annotate()`?
It seems to me that your example is an annotation. Annotations may or may
not involve related tables / joins, but that doesn't mean they should be
done via `select_related()`. If this were implemented, how would one
determine which types of query annotations would happen via `annotate()`
and which via `select_related()`?
--
Ticket URL: <https://code.djangoproject.com/ticket/23854#comment:2>
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/066.fcec5d6d05f91312d46ca06a1437a225%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.