diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2006-05-16 20:39:14 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2006-05-16 20:39:14 +0000 |
| commit | e1184016a29b90694e3624d646b35b9d4aa4756e (patch) | |
| tree | f15b0c5f1ccd0f22b132b97403304263da579fb9 /docs/db-api.txt | |
| parent | 93937ed38a828e0f252fb25614516593ec7b9ab0 (diff) | |
multi-auth: Merged to [2919]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multi-auth@2921 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 0a400b2c93..e2173afe16 100644 --- a/docs/db-api.txt +++ b/docs/db-api.txt @@ -1085,7 +1085,7 @@ This spanning can be as deep as you'd like. It works backwards, too. To refer to a "reverse" relationship, just use the lowercase name of the model. -This example retrieves all ``Blog`` objects who have at least one ``Entry`` +This example retrieves all ``Blog`` objects which have at least one ``Entry`` whose ``headline`` contains ``'Lennon'``:: Blog.objects.filter(entry__headline__contains='Lennon') @@ -1168,7 +1168,7 @@ Complex lookups with Q objects ============================== Keyword argument queries -- in ``filter()``, etc. -- are "AND"ed together. If -you need to execute more more complex queries (for example, queries with ``OR`` +you need to execute more complex queries (for example, queries with ``OR`` statements), you can use ``Q`` objects. A ``Q`` object (``django.db.models.Q``) is an object used to encapsulate a @@ -1534,7 +1534,7 @@ described in `Field lookups`_ above. Note that in the case of identical date values, these methods will use the ID as a fallback check. This guarantees that no records are skipped or duplicated. -For a full example, see the `lookup API sample model_`. +For a full example, see the `lookup API sample model`_. .. _lookup API sample model: http://www.djangoproject.com/documentation/models/lookup/ |
