#30347: A typo in Aggregation document.
-----------------------------------------+------------------------
Reporter: tpzstamp | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
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?
--
Ticket URL: <https://code.djangoproject.com/ticket/30347>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.700b96dd01644ad4162e89b38e1244c7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.