Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 5b560ec0c06478327765297e3863cd9314ff167b 1 parent 0e54c23
Aymeric Augustin authored

Showing 1 changed file with 12 additions and 10 deletions. Show diff stats Hide diff stats

  1. 22  docs/ref/models/querysets.txt
22  docs/ref/models/querysets.txt
@@ -2122,10 +2122,10 @@ Avg
2122 2122
 
2123 2123
 .. class:: Avg(field)
2124 2124
 
2125  
-    Returns the mean value of the given field.
  2125
+    Returns the mean value of the given field, which must be numeric.
2126 2126
 
2127 2127
     * Default alias: ``<field>__avg``
2128  
-    * Return type: float
  2128
+    * Return type: ``float``
2129 2129
 
2130 2130
 Count
2131 2131
 ~~~~~
@@ -2135,14 +2135,15 @@ Count
2135 2135
     Returns the number of objects that are related through the provided field.
2136 2136
 
2137 2137
     * Default alias: ``<field>__count``
2138  
-    * Return type: integer
  2138
+    * Return type: ``int``
2139 2139
 
2140 2140
     Has one optional argument:
2141 2141
 
2142 2142
     .. attribute:: distinct
2143 2143
 
2144  
-        If distinct=True, the count will only include unique instances. This has
2145  
-        the SQL equivalent of ``COUNT(DISTINCT field)``. Default value is ``False``.
  2144
+        If ``distinct=True``, the count will only include unique instances.
  2145
+        This is the SQL equivalent of ``COUNT(DISTINCT <field>)``. The default
  2146
+        value is ``False``.
2146 2147
 
2147 2148
 Max
2148 2149
 ~~~
@@ -2172,7 +2173,7 @@ StdDev
2172 2173
     Returns the standard deviation of the data in the provided field.
2173 2174
 
2174 2175
     * Default alias: ``<field>__stddev``
2175  
-    * Return type: float
  2176
+    * Return type: ``float``
2176 2177
 
2177 2178
     Has one optional argument:
2178 2179
 
@@ -2183,9 +2184,10 @@ StdDev
2183 2184
 
2184 2185
     .. admonition:: SQLite
2185 2186
 
2186  
-        SQLite doesn't provide ``StdDev`` out of the box. An implementation is
2187  
-        available as an extension module for SQLite. Consult the SQlite
2188  
-        documentation for instructions on obtaining and installing this extension.
  2187
+        SQLite doesn't provide ``StdDev`` out of the box. An implementation
  2188
+        is available as an extension module for SQLite. Consult the `SQlite
  2189
+        documentation`_ for instructions on obtaining and installing this
  2190
+        extension.
2189 2191
 
2190 2192
 Sum
2191 2193
 ~~~
@@ -2205,7 +2207,7 @@ Variance
2205 2207
     Returns the variance of the data in the provided field.
2206 2208
 
2207 2209
     * Default alias: ``<field>__variance``
2208  
-    * Return type: float
  2210
+    * Return type: ``float``
2209 2211
 
2210 2212
     Has one optional argument:
2211 2213
 

0 notes on commit 5b560ec

Please sign in to comment.
Something went wrong with that request. Please try again.