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:
parent
28d4282703
commit
01779cdcef
@ -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``
|
||||
|
Loading…
Reference in New Issue
Block a user