Browse Source

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

Tom Forbes 1 year ago
parent
commit
23d24f82a7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      docs/ref/models/querysets.txt

+ 1 - 0
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``