diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-06-11 14:51:26 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-06-11 14:51:26 +0000 |
| commit | 748ea65a6180293c356faa3ff0e754cb1d678d14 (patch) | |
| tree | 542a590e521cfd639d1903a4968e75edd68e039d /docs/db-api.txt | |
| parent | 0b4122d1387e3c793661c0828278a021364691d4 (diff) | |
unicode: Merged changes from trunk up to [5460].
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/db-api.txt')
| -rw-r--r-- | docs/db-api.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt index cd3a115282..f58dca3f3a 100644 --- a/docs/db-api.txt +++ b/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') |
