mirror of
https://github.com/django/django.git
synced 2025-05-05 06:27:31 +00:00
[3.2.x] Fixed #32618 -- Added link to conditional aggregation in aggregation topic guide.
Backport of 1351f2ee163145df2cf5471eb3e57289f8853512 from main
This commit is contained in:
parent
0abbdc8ef6
commit
078bcd587d
@ -354,7 +354,7 @@ authors with a count of highly rated books::
|
|||||||
>>> Author.objects.annotate(num_books=Count('book'), highly_rated_books=highly_rated)
|
>>> Author.objects.annotate(num_books=Count('book'), highly_rated_books=highly_rated)
|
||||||
|
|
||||||
Each ``Author`` in the result set will have the ``num_books`` and
|
Each ``Author`` in the result set will have the ``num_books`` and
|
||||||
``highly_rated_books`` attributes.
|
``highly_rated_books`` attributes. See also :ref:`conditional-aggregation`.
|
||||||
|
|
||||||
.. admonition:: Choosing between ``filter`` and ``QuerySet.filter()``
|
.. admonition:: Choosing between ``filter`` and ``QuerySet.filter()``
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user