Преглед на файлове

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

Tom Forbes преди 1 година
родител
ревизия
23d24f82a7
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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``