From 4400d8568ad5695c46e8de45635a82a27a26b871 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 31 Dec 2021 06:49:10 +0100 Subject: [PATCH] Fixed #33391 -- Clarified Aggregate.empty_result_set_value docs. --- docs/ref/models/expressions.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index 5ea7f9f0aa..208b810048 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -418,9 +418,8 @@ The ``Aggregate`` API is as follows: .. versionadded:: 4.0 - Override :attr:`~django.db.models.Expression.empty_result_set_value` to - ``None`` since most aggregate functions result in ``NULL`` when applied - to an empty result set. + Defaults to ``None`` since most aggregate functions result in ``NULL`` + when applied to an empty result set. The ``expressions`` positional arguments can include expressions, transforms of the model field, or the names of model fields. They will be converted to a