Author: russellm
Date: 2009-02-17 04:17:29 -0600 (Tue, 17 Feb 2009)
New Revision: 9844
Modified:
django/trunk/docs/ref/models/querysets.txt
Log:
Clarified some documentation on the use of the aggregate() query modifier,
following suggestions on IRC. Thanks to Tai Lee for the report.
Modified: django/trunk/docs/ref/models/querysets.txt
===================================================================
--- django/trunk/docs/ref/models/querysets.txt 2009-02-16 21:03:09 UTC (rev
9843)
+++ django/trunk/docs/ref/models/querysets.txt 2009-02-17 10:17:29 UTC (rev
9844)
@@ -991,7 +991,7 @@
the model field that is being aggregated.
For example, if you were manipulating blog entries, you may want to know
-the average number of authors contributing to blog entries::
+the number of authors that have contributed blog entries::
>>> q = Blog.objects.aggregate(Count('entry'))
{'entry__count': 16}
@@ -1000,7 +1000,7 @@
control the name of the aggregation value that is returned::
>>> q = Blog.objects.aggregate(number_of_entries=Count('entry'))
- {'number_of_entries': 2.34}
+ {'number_of_entries': 16}
For an in-depth discussion of aggregation, see :ref:`the topic guide on
Aggregation <topics-db-aggregation>`.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---