mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed a typo in docs/ref/contrib/postgres/search.txt.
This commit is contained in:
committed by
Tim Graham
parent
415ae960bb
commit
f1af076fba
@@ -128,7 +128,7 @@ a different language parsers and dictionaries as defined by the database::
|
|||||||
|
|
||||||
The value of ``config`` could also be stored in another column::
|
The value of ``config`` could also be stored in another column::
|
||||||
|
|
||||||
>>> from djanog.db.models import F
|
>>> from django.db.models import F
|
||||||
>>> Entry.objects.annotate(
|
>>> Entry.objects.annotate(
|
||||||
... search=SearchVector('body_text', config=F('blog__language')),
|
... search=SearchVector('body_text', config=F('blog__language')),
|
||||||
... ).filter(search=SearchQuery('œuf', config=F('blog__language')))
|
... ).filter(search=SearchQuery('œuf', config=F('blog__language')))
|
||||||
|
|||||||
Reference in New Issue
Block a user