|
@@ -3910,7 +3910,8 @@ by the aggregate.
|
|
|
|
|
|
* Default alias: ``<field>__avg``
|
|
* Default alias: ``<field>__avg``
|
|
* Return type: ``float`` if input is ``int``, otherwise same as input
|
|
* Return type: ``float`` if input is ``int``, otherwise same as input
|
|
- field, or ``output_field`` if supplied
|
|
|
|
|
|
+ field, or ``output_field`` if supplied. If the queryset or grouping is
|
|
|
|
+ empty, ``default`` is returned.
|
|
|
|
|
|
.. attribute:: distinct
|
|
.. attribute:: distinct
|
|
|
|
|
|
@@ -3948,7 +3949,8 @@ by the aggregate.
|
|
Returns the maximum value of the given expression.
|
|
Returns the maximum value of the given expression.
|
|
|
|
|
|
* Default alias: ``<field>__max``
|
|
* Default alias: ``<field>__max``
|
|
- * Return type: same as input field, or ``output_field`` if supplied
|
|
|
|
|
|
+ * Return type: same as input field, or ``output_field`` if supplied. If the
|
|
|
|
+ queryset or grouping is empty, ``default`` is returned.
|
|
|
|
|
|
``Min``
|
|
``Min``
|
|
~~~~~~~
|
|
~~~~~~~
|
|
@@ -3958,7 +3960,8 @@ by the aggregate.
|
|
Returns the minimum value of the given expression.
|
|
Returns the minimum value of the given expression.
|
|
|
|
|
|
* Default alias: ``<field>__min``
|
|
* Default alias: ``<field>__min``
|
|
- * Return type: same as input field, or ``output_field`` if supplied
|
|
|
|
|
|
+ * Return type: same as input field, or ``output_field`` if supplied. If the
|
|
|
|
+ queryset or grouping is empty, ``default`` is returned.
|
|
|
|
|
|
``StdDev``
|
|
``StdDev``
|
|
~~~~~~~~~~
|
|
~~~~~~~~~~
|
|
@@ -3969,7 +3972,8 @@ by the aggregate.
|
|
|
|
|
|
* Default alias: ``<field>__stddev``
|
|
* Default alias: ``<field>__stddev``
|
|
* Return type: ``float`` if input is ``int``, otherwise same as input
|
|
* Return type: ``float`` if input is ``int``, otherwise same as input
|
|
- field, or ``output_field`` if supplied
|
|
|
|
|
|
+ field, or ``output_field`` if supplied. If the queryset or grouping is
|
|
|
|
+ empty, ``default`` is returned.
|
|
|
|
|
|
.. attribute:: sample
|
|
.. attribute:: sample
|
|
|
|
|
|
@@ -3985,7 +3989,8 @@ by the aggregate.
|
|
Computes the sum of all values of the given expression.
|
|
Computes the sum of all values of the given expression.
|
|
|
|
|
|
* Default alias: ``<field>__sum``
|
|
* Default alias: ``<field>__sum``
|
|
- * Return type: same as input field, or ``output_field`` if supplied
|
|
|
|
|
|
+ * Return type: same as input field, or ``output_field`` if supplied. If the
|
|
|
|
+ queryset or grouping is empty, ``default`` is returned.
|
|
|
|
|
|
.. attribute:: distinct
|
|
.. attribute:: distinct
|
|
|
|
|
|
@@ -4002,7 +4007,8 @@ by the aggregate.
|
|
|
|
|
|
* Default alias: ``<field>__variance``
|
|
* Default alias: ``<field>__variance``
|
|
* Return type: ``float`` if input is ``int``, otherwise same as input
|
|
* Return type: ``float`` if input is ``int``, otherwise same as input
|
|
- field, or ``output_field`` if supplied
|
|
|
|
|
|
+ field, or ``output_field`` if supplied. If the queryset or grouping is
|
|
|
|
+ empty, ``default`` is returned.
|
|
|
|
|
|
.. attribute:: sample
|
|
.. attribute:: sample
|
|
|
|
|