diff options
Diffstat (limited to 'docs/db-api.txt')
| -rw-r--r-- | docs/db-api.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt index d1646ba6ea..f5da56ddf9 100644 --- a/docs/db-api.txt +++ b/docs/db-api.txt @@ -481,7 +481,7 @@ In SQL terms, that evaluates to:: WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello') This example excludes all entries whose ``pub_date`` is later than 2005-1-3 -AND whose headline is NOT "Hello":: +OR whose headline is "Hello":: Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello') |
