mirror of
https://github.com/django/django.git
synced 2025-06-03 18:49:12 +00:00
Fixed #10812 -- Corrected typo in aggregation docs. Thanks to uzi for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10562 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a47153c8c1
commit
163bf995a5
@ -188,7 +188,7 @@ to determine how many entries have been made in each blog::
|
|||||||
>>> q[0].entry__count
|
>>> q[0].entry__count
|
||||||
42
|
42
|
||||||
|
|
||||||
The ``Blog`` model doesn't define an ``entry_count`` attribute by itself,
|
The ``Blog`` model doesn't define an ``entry__count`` attribute by itself,
|
||||||
but by using a keyword argument to specify the aggregate function, you can
|
but by using a keyword argument to specify the aggregate function, you can
|
||||||
control the name of the annotation::
|
control the name of the annotation::
|
||||||
|
|
||||||
@ -1485,7 +1485,7 @@ A boolean full-text search, taking advantage of full-text indexing. This is
|
|||||||
like ``contains`` but is significantly faster due to full-text indexing.
|
like ``contains`` but is significantly faster due to full-text indexing.
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
Entry.objects.filter(headline__search="+Django -jazz Python")
|
Entry.objects.filter(headline__search="+Django -jazz Python")
|
||||||
|
|
||||||
SQL equivalent::
|
SQL equivalent::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user