filter() on a related multi-valued manager joins to too many tables.
|Reported by:||Malcolm Tredinnick||Owned by:||Malcolm Tredinnick|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Because related managers are treated as
filter() calls internally, filtering on a related attribute is the same as chained
filter() calls, which leads to unintuitive behaviour on many-to-many relations and reverse