Changes between Initial Version and Version 6 of Ticket #19222
- Timestamp:
- May 16, 2016, 1:16:40 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19222
- Property Type Uncategorized → Cleanup/optimization
- Property Triage Stage Unreviewed → Accepted
- Property Summary Documentation for use_for_related_fields should clarify that it doesn't work for intermediate joins → Clarify that custom managers don't apply to intermediate joins
- Property Version 1.4 → master
-
Ticket #19222 – Description
initial v6 1 I have a custom Manager to filter out model instances with where the field `deleted` is `True`. I'm using an ORM query that looks like `user1.page_set.filter(membership__user=user2)`. The option `use_for_related_fields=True` is set on the relevant manager.1 I have a custom Manager to filter out model instances with where the field `deleted` is `True`. I'm using an ORM query that looks like `user1.page_set.filter(membership__user=user2)`. 2 2 3 3 My expectation is that `Membership` objects with the deleted flag set are not included in the query. Instead, they are being included. 4 5 The documentation for `use_for_related_fields` should should specify that it doesn't work in this case.