#2238 closed enhancement (wontfix)
select_related should fetch reverse relations
Reported by: | derelm | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | |
Severity: | normal | Keywords: | |
Cc: | bronger@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | UI/UX: |
Description
select_related on a certain model A only fetches tables that are referenced from within that model A.
i think it should also fetch those models B that define a relation to A.
Change History (6)
comment:1 by , 18 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
Maybe I didn't understand this report correctly, but http://rubynugs.blogspot.com/2008/07/couple-of-stupid-things-about-djano.html claims that this actually works in Rails.
comment:3 by , 16 years ago
Cc: | added |
---|
comment:4 by , 15 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
I know this is quite old, but is this planned to be included in the orm at some point ?
If not, is it possible to get an explanation on why is this considered impossible ?
comment:5 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Please read: http://docs.djangoproject.com/en/dev/internals/contributing/#id1, which notes you should ask for a wontfix explanation on the django-developers list, not by reopening the ticket.
This wouldn't work, if you think about it, because of the nature of the underlying SQL.