diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-09-13 14:41:38 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-09-13 14:41:38 +0000 |
| commit | 28d27a77e8f5d80844c7b7ca54b1e1731ec8b3e0 (patch) | |
| tree | 75af8a8235bef510ba92e174d5ee7f81c5b043b4 /docs | |
| parent | a31bbda980b07fd54123ef44f8df1f0621c3677b (diff) | |
Fixed #5409 -- Fixed logic error in docs/db-api.txt. Thanks, David Paccoud
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -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 2a90b2d171..66faf4a793 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') |
