  The ``**extra`` kwargs are ``key=value`` pairs that can be interpolated
  into the ``template`` attribute.
  
  Creating your own Aggregate Functions
  -------------------------------------
  
  Creating your own aggregate is extremely easy. At a minimum, you need
 
</s> remove .. class:: Aggregate(*expressions, output_field=None, filter=None, **extra)
 </s> add .. class:: Aggregate(*expressions, output_field=None, distinct=False, filter=None, **extra)
.. versionadded:: 2.2

    The ``allow_distinct`` attribute and ``distinct`` argument were added.

  The ``**extra`` kwargs are ``key=value`` pairs that can be interpolated
  into the ``template`` attribute.
  
.. versionadded:: 2.2

    The ``allow_distinct`` attribute and ``distinct`` argument were added.

  Creating your own Aggregate Functions
  -------------------------------------
  
  Creating your own aggregate is extremely easy. At a minimum, you need
keep keep add keep keep keep keep
 Fixed #28658 -- Added DISTINCT handling to the Aggregate class. 
docs/ref/models/expressions.txt