1
0
mirror of https://github.com/django/django.git synced 2024-12-25 10:35:48 +00:00

[4.2.x] Doc'd that Count("*") is equivalent to COUNT(*) SQL.

Backport of 23d24f82a7 from main
This commit is contained in:
Tom Forbes 2023-04-27 10:52:54 +01:00 committed by Mariusz Felisiak
parent 28d4282703
commit 01779cdcef

View File

@ -3996,6 +3996,7 @@ by the aggregate.
.. class:: Count(expression, distinct=False, filter=None, **extra)
Returns the number of objects that are related through the provided
expression. ``Count('*')`` is equivalent to the SQL ``COUNT(*)``
expression.
* Default alias: ``<field>__count``