diff options
| author | Tom Forbes <tom@tomforb.es> | 2023-04-27 10:52:54 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-04-27 11:54:26 +0200 |
| commit | 01779cdcef4be8d45446e1f88915ef3199c7b41f (patch) | |
| tree | a38fc728ab65f5cb87a2a48adba7cbd3a30f137d | |
| parent | 28d428270328ff75302ba4fd935a52a71a600675 (diff) | |
[4.2.x] Doc'd that Count("*") is equivalent to COUNT(*) SQL.
Backport of 23d24f82a7450ef5d369845e18cc0130be5bac6c from main
| -rw-r--r-- | docs/ref/models/querysets.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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: ``<field>__count`` |
