Changes between Initial Version and Version 1 of Ticket #23589


Ignore:
Timestamp:
Oct 3, 2014, 6:47:46 AM (10 years ago)
Author:
Tim Graham
Comment:

It would be helpful if you could create a test for Django's test suite that demonstrates the issue (ideally reusing existing models if you can find appropriate ones) and bisect to the commit that introduced the regression.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23589 – Description

    initial v1  
    55`results = PrimaryObject.objects.filter(q)`
    66
    7 Using this Q in a filter in 1.6.7 would give you all primary objects that have relatedobjects with someparam=True and omit any primary objects that also had a relatedobject with someparam=False. In 1.7 these objects are returned despite the ~Q(relatedobject__someparam=False).
     7Using this Q in a filter in 1.6.7 would give you all primary objects that have relatedobjects with someparam=True and omit any primary objects that also had a relatedobject with someparam=False. In 1.7 these objects are returned despite the `~Q(relatedobject__someparam=False)`.
    88
    99This gist provides a sample to illustrate the problem:
Back to Top