summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Melchiorre <paolo@melchiorre.org>2017-04-08 13:26:15 +0200
committerTim Graham <timograham@gmail.com>2017-04-08 07:26:42 -0400
commit85dc4be21ff1ff30920a44e6c5d905bee02c2c87 (patch)
treebefcf0ade84e8aead2ac63e064f0c731e145a3c9
parentfd7105e130e55f67f6b0ba232a8c40f9af51a906 (diff)
downloaddjango-85dc4be21ff1ff30920a44e6c5d905bee02c2c87.tar.gz
[1.10.x] Fixed typos in docs/topic/db/search.txt.
Backport of eac396a5d08a2c7424cd897b54360531dc0ceae5 from master
-rw-r--r--docs/topics/db/search.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/db/search.txt b/docs/topics/db/search.txt
index 04d84552df..3565159ecb 100644
--- a/docs/topics/db/search.txt
+++ b/docs/topics/db/search.txt
@@ -50,7 +50,7 @@ more useful. When dealing with non-English names, a further improvement is to
use :lookup:`unaccented comparison <unaccent>`::
>>> Author.objects.filter(name__unaccent__icontains='Helen')
- [<Author: Helen Mirren>, <Author: Helena Bonham Carter>, <Actor: Hélène Joy>]
+ [<Author: Helen Mirren>, <Author: Helena Bonham Carter>, <Author: Hélène Joy>]
This shows another issue, where we are matching against a different spelling of
the name. In this case we have an asymmetry though - a search for ``Helen``
@@ -61,7 +61,7 @@ sequences of letters.
For example::
>>> Author.objects.filter(name__unaccent__lower__trigram_similar='Hélène')
- [<Author: Helen Mirren>, <Actor: Hélène Joy>]
+ [<Author: Helen Mirren>, <Author: Hélène Joy>]
Now we have a different problem - the longer name of "Helena Bonham Carter"
doesn't show up as it is much longer. Trigram searches consider all