select_related() should also follow ManyToMany fields
|Reported by:||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Severity:||Normal||Keywords:||m2m queryset-refactor perf|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The select_related() documentation states that it "follows" foreign-key relationships, but it does not so with ManyToMany fields. This is a humble request to also follow the ManyToMany relations.
This ticket might me best suited for the queryset-refactor branch.
Change History (8)
comment:2 Changed 9 years ago by
|Status:||new → closed|
|Triage Stage:||Unreviewed → Someday/Maybe|