summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2018-12-19 23:03:42 +0000
committerTim Graham <timograham@gmail.com>2019-01-14 14:38:00 -0500
commite85afa5943695457c85e9bc1c5dc0d985004e303 (patch)
tree66b8475692aa17e3f06352da5d1161d82419a887 /docs/ref
parentc690afb873cac8035a3cb3be7c597a5ff0e4b261 (diff)
Refs #28643 -- Changed StdDev() to use NumericOutputFieldMixin.
Keeps precision instead of forcing DecimalField to FloatField.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/querysets.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 46fcd50e37..a80528220c 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -3387,12 +3387,13 @@ by the aggregate.
``StdDev``
~~~~~~~~~~
-.. class:: StdDev(expression, sample=False, filter=None, **extra)
+.. class:: StdDev(expression, output_field=None, sample=False, filter=None, **extra)
Returns the standard deviation of the data in the provided expression.
* Default alias: ``<field>__stddev``
- * Return type: ``float``
+ * Return type: ``float`` if input is ``int``, otherwise same as input
+ field, or ``output_field`` if supplied
Has one optional argument: