mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #33391 -- Clarified Aggregate.empty_result_set_value docs.
This commit is contained in:
@@ -418,9 +418,8 @@ The ``Aggregate`` API is as follows:
|
|||||||
|
|
||||||
.. versionadded:: 4.0
|
.. versionadded:: 4.0
|
||||||
|
|
||||||
Override :attr:`~django.db.models.Expression.empty_result_set_value` to
|
Defaults to ``None`` since most aggregate functions result in ``NULL``
|
||||||
``None`` since most aggregate functions result in ``NULL`` when applied
|
when applied to an empty result set.
|
||||||
to an empty result set.
|
|
||||||
|
|
||||||
The ``expressions`` positional arguments can include expressions, transforms of
|
The ``expressions`` positional arguments can include expressions, transforms of
|
||||||
the model field, or the names of model fields. They will be converted to a
|
the model field, or the names of model fields. They will be converted to a
|
||||||
|
|||||||
Reference in New Issue
Block a user