Ticket #5409: logic-error.2.diff
File logic-error.2.diff, 479 bytes (added by , 17 years ago) |
---|
-
db-api.txt
481 481 WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello') 482 482 483 483 This example excludes all entries whose ``pub_date`` is later than 2005-1-3 484 AND whose headline is NOT"Hello"::484 OR whose headline is "Hello":: 485 485 486 486 Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello') 487 487