Kaydet (Commit) 926fa711 authored tarafından Tim Graham's avatar Tim Graham

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

üst 7056a4dd
...@@ -16,6 +16,11 @@ These functions are described in more detail in the `PostgreSQL docs ...@@ -16,6 +16,11 @@ These functions are described in more detail in the `PostgreSQL docs
>>> SomeModel.objects.aggregate(arr=ArrayAgg('somefield')) >>> SomeModel.objects.aggregate(arr=ArrayAgg('somefield'))
{'arr': [0, 1, 2]} {'arr': [0, 1, 2]}
.. admonition:: Common aggregate options
All aggregates have the :ref:`filter <aggregate-filter>` keyword
argument.
General-purpose aggregation functions General-purpose aggregation functions
===================================== =====================================
......
...@@ -3315,6 +3315,8 @@ of the return value ...@@ -3315,6 +3315,8 @@ of the return value
``output_field`` if all fields are of the same type. Otherwise, you ``output_field`` if all fields are of the same type. Otherwise, you
must provide the ``output_field`` yourself. must provide the ``output_field`` yourself.
.. _aggregate-filter:
``filter`` ``filter``
~~~~~~~~~~ ~~~~~~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment