Changes between Initial Version and Version 1 of Ticket #20564, comment 13


Ignore:
Timestamp:
Jun 6, 2013, 12:58:15 PM (11 years ago)
Author:
Nicolas Ferrari

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20564, comment 13

    initial v1  
    11I 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.
    22
    3 This query makes sense to me: C.objects.exclude(a__flag=None)
     3This query makes sense to me:
     4{{{
     5C.objects.exclude(a__flag=None)
     6}}}
    47
    5 I tried this one too: C.objects.exclude(a__flag__istrue=True) ... but the result is the same.
     8I tried this one too:
     9{{{
     10C.objects.exclude(a__flag__istrue=True)
     11}}}
     12 
     13... but the result is the same.
    614
    715Does that make sense to you? Maybe I could find an example more explicit than A, B and C objects...
Back to Top