0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed #29317 -- Doc'd filter argument in contrib.postgres aggregates.

This commit is contained in:
Tim Graham 2018-11-27 10:57:26 -05:00
parent 7056a4dd8e
commit 926fa7116f
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,11 @@ These functions are described in more detail in the `PostgreSQL docs
>>> SomeModel.objects.aggregate(arr=ArrayAgg('somefield'))
{'arr': [0, 1, 2]}
.. admonition:: Common aggregate options
All aggregates have the :ref:`filter <aggregate-filter>` keyword
argument.
General-purpose aggregation functions
=====================================

View File

@ -3315,6 +3315,8 @@ of the return value
``output_field`` if all fields are of the same type. Otherwise, you
must provide the ``output_field`` yourself.
.. _aggregate-filter:
``filter``
~~~~~~~~~~