Changes between Initial Version and Version 1 of Ticket #23589
- Timestamp:
- Oct 3, 2014, 6:47:46 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23589 – Description
initial v1 5 5 `results = PrimaryObject.objects.filter(q)` 6 6 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).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)`. 8 8 9 9 This gist provides a sample to illustrate the problem: