1
0
mirror of https://github.com/django/django.git synced 2025-03-25 16:50:45 +00:00

Doc'd that Count("*") is equivalent to COUNT(*) SQL.

This commit is contained in:
Tom Forbes 2023-04-27 10:52:54 +01:00 committed by GitHub
parent 7d0e566208
commit 23d24f82a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3898,6 +3898,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``