From 01779cdcef4be8d45446e1f88915ef3199c7b41f Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Thu, 27 Apr 2023 10:52:54 +0100 Subject: [PATCH] [4.2.x] Doc'd that Count("*") is equivalent to COUNT(*) SQL. Backport of 23d24f82a7450ef5d369845e18cc0130be5bac6c from main --- docs/ref/models/querysets.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 664e7cb59a..75bd7fff9b 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -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: ``__count``