[2.1.x] Fixed #29317 -- Doc'd filter argument in contrib.postgres aggregates.

Backport of 926fa7116f from master.
This commit is contained in:
Tim Graham 2018-11-27 10:57:26 -05:00
parent 5760e05375
commit 7e9d5a0aca
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

@ -3262,6 +3262,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``
~~~~~~~~~~