Fixed a few typos in the aggregation functions reference.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0e54c23caf
commit
5b560ec0c0
|
@ -2122,10 +2122,10 @@ Avg
|
||||||
|
|
||||||
.. class:: Avg(field)
|
.. class:: Avg(field)
|
||||||
|
|
||||||
Returns the mean value of the given field.
|
Returns the mean value of the given field, which must be numeric.
|
||||||
|
|
||||||
* Default alias: ``<field>__avg``
|
* Default alias: ``<field>__avg``
|
||||||
* Return type: float
|
* Return type: ``float``
|
||||||
|
|
||||||
Count
|
Count
|
||||||
~~~~~
|
~~~~~
|
||||||
|
@ -2135,14 +2135,15 @@ Count
|
||||||
Returns the number of objects that are related through the provided field.
|
Returns the number of objects that are related through the provided field.
|
||||||
|
|
||||||
* Default alias: ``<field>__count``
|
* Default alias: ``<field>__count``
|
||||||
* Return type: integer
|
* Return type: ``int``
|
||||||
|
|
||||||
Has one optional argument:
|
Has one optional argument:
|
||||||
|
|
||||||
.. attribute:: distinct
|
.. attribute:: distinct
|
||||||
|
|
||||||
If distinct=True, the count will only include unique instances. This has
|
If ``distinct=True``, the count will only include unique instances.
|
||||||
the SQL equivalent of ``COUNT(DISTINCT field)``. Default value is ``False``.
|
This is the SQL equivalent of ``COUNT(DISTINCT <field>)``. The default
|
||||||
|
value is ``False``.
|
||||||
|
|
||||||
Max
|
Max
|
||||||
~~~
|
~~~
|
||||||
|
@ -2172,7 +2173,7 @@ StdDev
|
||||||
Returns the standard deviation of the data in the provided field.
|
Returns the standard deviation of the data in the provided field.
|
||||||
|
|
||||||
* Default alias: ``<field>__stddev``
|
* Default alias: ``<field>__stddev``
|
||||||
* Return type: float
|
* Return type: ``float``
|
||||||
|
|
||||||
Has one optional argument:
|
Has one optional argument:
|
||||||
|
|
||||||
|
@ -2183,9 +2184,10 @@ StdDev
|
||||||
|
|
||||||
.. admonition:: SQLite
|
.. admonition:: SQLite
|
||||||
|
|
||||||
SQLite doesn't provide ``StdDev`` out of the box. An implementation is
|
SQLite doesn't provide ``StdDev`` out of the box. An implementation
|
||||||
available as an extension module for SQLite. Consult the SQlite
|
is available as an extension module for SQLite. Consult the `SQlite
|
||||||
documentation for instructions on obtaining and installing this extension.
|
documentation`_ for instructions on obtaining and installing this
|
||||||
|
extension.
|
||||||
|
|
||||||
Sum
|
Sum
|
||||||
~~~
|
~~~
|
||||||
|
@ -2205,7 +2207,7 @@ Variance
|
||||||
Returns the variance of the data in the provided field.
|
Returns the variance of the data in the provided field.
|
||||||
|
|
||||||
* Default alias: ``<field>__variance``
|
* Default alias: ``<field>__variance``
|
||||||
* Return type: float
|
* Return type: ``float``
|
||||||
|
|
||||||
Has one optional argument:
|
Has one optional argument:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue