Fixed ReST formatting bug in db-api.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b68f26e42d
commit
e243d82874
|
@ -49,13 +49,13 @@ translates (roughly) into the following SQL:
|
|||
|
||||
The DB API supports the following lookup types:
|
||||
|
||||
========== ==============================================================
|
||||
=========== ==============================================================
|
||||
Type Description
|
||||
========== ==============================================================
|
||||
=========== ==============================================================
|
||||
exact Exact match: ``polls.get_object(id__exact=14)``.
|
||||
iexact Case-insensitive exact match:
|
||||
``polls.get_list(slug__iexact="foo")`` matches a slug of ``foo``,
|
||||
``FOO``, ``fOo``, etc.
|
||||
``polls.get_list(slug__iexact="foo")`` matches a slug of
|
||||
``foo``, ``FOO``, ``fOo``, etc.
|
||||
contains Case-sensitive containment test:
|
||||
``polls.get_list(question__contains="spam")`` returns all polls
|
||||
that contain "spam" in the question. (PostgreSQL only. MySQL
|
||||
|
@ -85,7 +85,7 @@ The DB API supports the following lookup types:
|
|||
day For date/datetime fields, exact day match.
|
||||
isnull True/False; does is IF NULL/IF NOT NULL lookup:
|
||||
``polls.get_list(expire_date__isnull=True)``.
|
||||
========== ==============================================================
|
||||
=========== ==============================================================
|
||||
|
||||
Multiple lookups are allowed, of course, and are translated as "AND"s::
|
||||
|
||||
|
|
Loading…
Reference in New Issue