Changed the indenting level on a couple of subsections, since they're not
children of the "pk lookup shortcut" section. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
675db84f23
commit
8f9e7035a9
|
@ -1372,7 +1372,7 @@ equivalent::
|
||||||
Entry.objects.filter(blog__pk=3) # __pk implies __id__exact
|
Entry.objects.filter(blog__pk=3) # __pk implies __id__exact
|
||||||
|
|
||||||
Lookups that span relationships
|
Lookups that span relationships
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
-------------------------------
|
||||||
|
|
||||||
Django offers a powerful and intuitive way to "follow" relationships in
|
Django offers a powerful and intuitive way to "follow" relationships in
|
||||||
lookups, taking care of the SQL ``JOIN``\s for you automatically, behind the
|
lookups, taking care of the SQL ``JOIN``\s for you automatically, behind the
|
||||||
|
@ -1396,7 +1396,7 @@ whose ``headline`` contains ``'Lennon'``::
|
||||||
Blog.objects.filter(entry__headline__contains='Lennon')
|
Blog.objects.filter(entry__headline__contains='Lennon')
|
||||||
|
|
||||||
Escaping percent signs and underscores in LIKE statements
|
Escaping percent signs and underscores in LIKE statements
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---------------------------------------------------------
|
||||||
|
|
||||||
The field lookups that equate to ``LIKE`` SQL statements (``iexact``,
|
The field lookups that equate to ``LIKE`` SQL statements (``iexact``,
|
||||||
``contains``, ``icontains``, ``startswith``, ``istartswith``, ``endswith``
|
``contains``, ``icontains``, ``startswith``, ``istartswith``, ``endswith``
|
||||||
|
|
Loading…
Reference in New Issue