Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #3807 -- Some small fixes to a couple of examples. Thanks,

jon.i.austin@gmail.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 484527f7802d78964d5646cc5fad833bfd7c4b6e 1 parent b912260
@malcolmt malcolmt authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/db-api.txt
View
6 docs/db-api.txt
@@ -388,7 +388,7 @@ The lookup parameters (``**kwargs``) should be in the format described in
`Field lookups`_ below. Multiple parameters are joined via ``AND`` in the
underlying SQL statement, and the whole thing is enclosed in a ``NOT()``.
-This example excludes all entries whose ``pub_date`` is the current date/time
+This example excludes all entries whose ``pub_date`` is later than 2005-1-3
AND whose ``headline`` is "Hello"::
Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3), headline='Hello')
@@ -398,8 +398,8 @@ In SQL terms, that evaluates to::
SELECT ...
WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello')
-This example excludes all entries whose ``pub_date`` is the current date/time
-OR whose ``headline`` is "Hello"::
+This example excludes all entries whose ``pub_date`` is later than 2005-1-3
+AND whose headline is NOT "Hello"::
Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello')
Please sign in to comment.
Something went wrong with that request. Please try again.