summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/querysets.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 1344c6744b..74199e3de1 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -2489,9 +2489,10 @@ aggregate functions, see
.. admonition:: Note
- Aggregation functions will return ``None`` when used with an empty
- ``QuerySet``. For example, the ``Count`` aggregation function will return
- ``None`` instead of ``0`` if the ``QuerySet`` contains no entries.
+ Aggregation functions return ``None`` when used with an empty
+ ``QuerySet``. For example, the ``Sum`` aggregation function returns ``None``
+ instead of ``0`` if the ``QuerySet`` contains no entries. An exception is
+ ``Count``, which does return ``0`` if the ``QuerySet`` is empty.
Avg
~~~