Ticket #3807: db-api.txt.diff

File db-api.txt.diff, 1.0 KB (added by jon.i.austin@…, 17 years ago)

docs/db-api.txt fix

  • db-api.txt

     
    388388`Field lookups`_ below. Multiple parameters are joined via ``AND`` in the
    389389underlying SQL statement, and the whole thing is enclosed in a ``NOT()``.
    390390
    391 This example excludes all entries whose ``pub_date`` is the current date/time
     391This example excludes all entries whose ``pub_date`` is later than 2005-1-3
    392392AND whose ``headline`` is "Hello"::
    393393
    394394    Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3), headline='Hello')
     
    398398    SELECT ...
    399399    WHERE NOT (pub_date > '2005-1-3' AND headline = 'Hello')
    400400
    401 This example excludes all entries whose ``pub_date`` is the current date/time
    402 OR whose ``headline`` is "Hello"::
     401This example excludes all entries whose ``pub_date`` is later than 2005-1-3 AND whose headline is NOT "Hello"::
    403402
    404403    Entry.objects.exclude(pub_date__gt=datetime.date(2005, 1, 3)).exclude(headline='Hello')
    405404
Back to Top