diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-08-22 20:05:54 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-08-22 20:25:42 +0200 |
| commit | 491d01b7e9e4244ff904af387f97e39b46786b5e (patch) | |
| tree | 116ae58f713c8867c2ef67dc2999b9266ab339d5 /docs | |
| parent | 0eb846605e56044b8f5334a7d735ed744b453c40 (diff) | |
Tweak some examples.
"Area man/woman" is confusing to people not familiar with the
conventions of American journalism (like me).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/queries.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index d7617e8b48..956baa7975 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -426,13 +426,13 @@ probably use: :lookup:`exact` An "exact" match. For example:: - >>> Entry.objects.get(headline__exact="Man bites dog") + >>> Entry.objects.get(headline__exact="Cat bites dog") Would generate SQL along these lines: .. code-block:: sql - SELECT ... WHERE headline = 'Man bites dog'; + SELECT ... WHERE headline = 'Cat bites dog'; If you don't provide a lookup type -- that is, if your keyword argument doesn't contain a double underscore -- the lookup type is assumed to be |
