#10052 closed (fixed)
Small Aggregation Documentation Update - Import Line
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
This change request is for the generating aggregates over a queryset section of the aggregation documentation:
http://docs.djangoproject.com/en/dev/topics/db/aggregation/#generating-aggregates-over-a-queryset
Please change the following line of code to include the other methods that are used throughout the page:
from django.db.models import Avg
Should be changed to:
from django.db.models import Avg, Max, Min, Count
This way new Django users, like me, know that these methods have to be imported, and imported from django.db.models before they can be used.
Note:
See TracTickets
for help on using tickets.
(In [9787]) Fixed #10052 -- Added import line for other aggregates used in examples. Thanks to Tyler Brownell <tyler@…> for the suggestion.