Browse Source

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

Tim Graham 6 years ago
parent
commit
926fa7116f
2 changed files with 7 additions and 0 deletions
  1. 5 0
      docs/ref/contrib/postgres/aggregates.txt
  2. 2 0
      docs/ref/models/querysets.txt

+ 5 - 0
docs/ref/contrib/postgres/aggregates.txt

@@ -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
 =====================================
 

+ 2 - 0
docs/ref/models/querysets.txt

@@ -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``
 ~~~~~~~~~~