Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored June 11, 2007

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  docs/db-api.txt
6  docs/db-api.txt
@@ -388,7 +388,7 @@ The lookup parameters (``**kwargs``) should be in the format described in
388 388
 `Field lookups`_ below. Multiple parameters are joined via ``AND`` in the
389 389
 underlying SQL statement, and the whole thing is enclosed in a ``NOT()``.
390 390
 
391  
-This example excludes all entries whose ``pub_date`` is the current date/time
  391
+This example excludes all entries whose ``pub_date`` is later than 2005-1-3
392 392
 AND whose ``headline`` is "Hello"::
393 393
 
394 394
     Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3), headline='Hello')
@@ -398,8 +398,8 @@ In SQL terms, that evaluates to::
398 398
     SELECT ...
399 399
     WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello')
400 400
 
401  
-This example excludes all entries whose ``pub_date`` is the current date/time
402  
-OR whose ``headline`` is "Hello"::
  401
+This example excludes all entries whose ``pub_date`` is later than 2005-1-3
  402
+AND whose headline is NOT "Hello"::
403 403
 
404 404
     Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello')
405 405
 

0 notes on commit 484527f

Please sign in to comment.
Something went wrong with that request. Please try again.