Changeset 5458
- Timestamp:
- 06/11/07 06:14:05 (1 year ago)
- Files:
-
- django/trunk/docs/db-api.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/db-api.txt
r5438 r5458 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/time391 This example excludes all entries whose ``pub_date`` is later than 2005-1-3 392 392 AND whose ``headline`` is "Hello":: 393 393 … … 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/time402 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')
