Changes between Initial Version and Version 6 of Ticket #19222


Ignore:
Timestamp:
May 16, 2016, 1:16:40 PM (9 years ago)
Author:
Loic Bistuer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19222

    • Property Type UncategorizedCleanup/optimization
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Documentation for use_for_related_fields should clarify that it doesn't work for intermediate joinsClarify that custom managers don't apply to intermediate joins
    • Property Version 1.4master
  • 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.
     1I 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)`.
    22
    33My 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.
Back to Top