Skip to content

Commit

Permalink
[4.2.x] Doc'd that Count("*") is equivalent to COUNT(*) SQL.
Browse files Browse the repository at this point in the history
Backport of 23d24f8 from main
  • Loading branch information
orf authored and felixxm committed Apr 27, 2023
1 parent 28d4282 commit 01779cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/ref/models/querysets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down

0 comments on commit 01779cd

Please sign in to comment.