summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTom Forbes <tom@tomforb.es>2023-04-27 10:52:54 +0100
committerGitHub <noreply@github.com>2023-04-27 11:52:54 +0200
commit23d24f82a7450ef5d369845e18cc0130be5bac6c (patch)
treed071a1313c51e5dd73d8d6a7f5d26cb109d3326c /docs
parent7d0e56620882c207998a41ac07ec5da572045b31 (diff)
downloaddjango-23d24f82a7450ef5d369845e18cc0130be5bac6c.tar.gz
Doc'd that Count("*") is equivalent to COUNT(*) SQL.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/querysets.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 0965a05dad..1d684607f1 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -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``