From c690afb873cac8035a3cb3be7c597a5ff0e4b261 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Sat, 1 Dec 2018 23:46:28 +0000 Subject: Refs #28643 -- Changed Avg() to use NumericOutputFieldMixin. Keeps precision instead of forcing DecimalField to FloatField. --- docs/ref/models/querysets.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 78eb175329..46fcd50e37 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -3336,14 +3336,14 @@ by the aggregate. ``Avg`` ~~~~~~~ -.. class:: Avg(expression, output_field=FloatField(), filter=None, **extra) +.. class:: Avg(expression, output_field=None, filter=None, **extra) Returns the mean value of the given expression, which must be numeric unless you specify a different ``output_field``. * Default alias: ``__avg`` - * Return type: ``float`` (or the type of whatever ``output_field`` is - specified) + * Return type: ``float`` if input is ``int``, otherwise same as input + field, or ``output_field`` if supplied ``Count`` ~~~~~~~~~ -- cgit v1.3