mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
Fixed #10929 -- Added default argument to aggregates.
Thanks to Simon Charette and Adam Johnson for the reviews.
This commit is contained in:
committed by
Mariusz Felisiak
parent
59942a66ce
commit
501a8db465
@@ -288,6 +288,10 @@ Models
|
||||
* :class:`~django.db.models.Lookup` expressions may now be used in ``QuerySet``
|
||||
annotations, aggregations, and directly in filters.
|
||||
|
||||
* The new :ref:`default <aggregate-default>` argument for built-in aggregates
|
||||
allows specifying a value to be returned when the queryset (or grouping)
|
||||
contains no entries, rather than ``None``.
|
||||
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user