#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 , 7 years ago
| Easy pickings: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Cleanup/optimization |
Version 0, edited 7 years ago by (next)
comment:2 by , 7 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:4 by , 7 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.