Django

Code

Ticket #5409: logic-error.diff

File logic-error.diff, 483 bytes (added by David Paccoud <dpaccoud@gmail.com>, 1 year ago)
  • db-api.txt

    old new  
    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