summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-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 2cc05e6a67..6aa8b32a54 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -2661,9 +2661,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
~~~