Changes between Initial Version and Version 1 of Ticket #20564, comment 13
- Timestamp:
- Jun 6, 2013, 12:58:15 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20564, comment 13
initial v1 1 1 I really do not understand the new logic. If we look only at the first query, with C objects and relationship with A. I'm looking for every C object having either no relation with any A object OR having a relationship only with some A objects having a value on the flag DateTimeField. Thus, I'm excluding every C object having a relation with some A objects having no value in the flag field. 2 2 3 This query makes sense to me: C.objects.exclude(a__flag=None) 3 This query makes sense to me: 4 {{{ 5 C.objects.exclude(a__flag=None) 6 }}} 4 7 5 I tried this one too: C.objects.exclude(a__flag__istrue=True) ... but the result is the same. 8 I tried this one too: 9 {{{ 10 C.objects.exclude(a__flag__istrue=True) 11 }}} 12 13 ... but the result is the same. 6 14 7 15 Does that make sense to you? Maybe I could find an example more explicit than A, B and C objects...