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 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 ANDwhose headline is NOT "Hello"::484 OR whose headline is NOT "Hello":: 485 485 486 486 Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello') 487 487
