Ticket #10039: aggdocs.diff
File aggdocs.diff, 770 bytes (added by , 16 years ago) |
---|
-
docs/topics/db/aggregation.txt
105 105 will be annotated with the specified values. 106 106 107 107 The syntax for these annotations is identical to that used for the 108 ``aggregate()`` clause. Each argument to ``annotate()`` describes an d109 aggregate that is to be calculated. For example, to annotate Books with 110 the number ofauthors::108 ``aggregate()`` clause. Each argument to ``annotate()`` describes an aggregate 109 that is to be calculated. For example, to annotate Books with the number of 110 authors:: 111 111 112 112 # Build an annotated queryset 113 113 >>> q = Book.objects.annotate(Count('authors'))