#30347 closed Cleanup/optimization (fixed)
A typo in Aggregation document.
Reported by: | PM | Owned by: | Daniel Musketa |
---|---|---|---|
Component: | Documentation | Version: | 2.2 |
Severity: | Normal | Keywords: | |
Cc: | ming.p.peng@… | Triage Stage: | Ready for checkin |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
In the online document, Using Django -> Models and databases -> Aggregation page,
section Filtering on annotations, https://docs.djangoproject.com/en/2.2/topics/db/aggregation/#filtering-on-annotations
The original text is
>>> highly_rated = Count('books', filter=Q(books__rating__gte=7)) >>> Author.objects.annotate(num_books=Count('books'), highly_rated_books=highly_rated)
Here, should 'books' be 'book' in these two lines?
Change History (6)
comment:1 by , 6 years ago
Easy pickings: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 6 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Yes, there is a typo
books
->book
.