Anonymous committed 87ca42e

Fixed #10052 -- Added import line for other aggregates used in examples. Thanks to Tyler Brownell <> for the suggestion.

Comments (0)

Files changed (1)


 argument to the ``aggregate()`` clause. So, if we also wanted to know
 the maximum and minimum price of all books, we would issue the query::
+    >>> from django.db.models import Avg, Max, Min, Count
     >>> Book.objects.aggregate(Avg('price'), Max('price'), Min('price'))
     {'price__avg': 34.35, 'price__max': Decimal('81.20'), 'price__min': Decimal('12.99')}