Ticket #5409: logic-error.diff

File logic-error.diff, 483 bytes (added by David Paccoud <dpaccoud@…>, 17 years ago)
  • db-api.txt

     
    481481    WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello')
    482482
    483483This example excludes all entries whose ``pub_date`` is later than 2005-1-3
    484 AND whose headline is NOT "Hello"::
     484OR whose headline is NOT "Hello"::
    485485
    486486    Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello')
    487487
Back to Top