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.
* type: Uncategorized => Cleanup/optimization
* easy: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/30347#comment:1>
* status: new => assigned
* owner: nobody => phillipahereza
--
Ticket URL: <https://code.djangoproject.com/ticket/30347#comment:2>
* owner: Phillip Ahereza => Daniel Musketa
Comment:
https://github.com/django/django/pull/11204
--
Ticket URL: <https://code.djangoproject.com/ticket/30347#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/30347#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"ba726067604ce5a8ca3919edf653496722b433ab" ba726067]:
{{{
#!CommitTicketReference repository=""
revision="ba726067604ce5a8ca3919edf653496722b433ab"
Fixed #30347 -- Fixed typo in docs/topics/db/aggregation.txt.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30347#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"f5c1d02f13a0484f1c32caf1a0117f1e75a3dc8f" f5c1d02f]:
{{{
#!CommitTicketReference repository=""
revision="f5c1d02f13a0484f1c32caf1a0117f1e75a3dc8f"
[2.2.x] Fixed #30347 -- Fixed typo in docs/topics/db/aggregation.txt.
Backport of ba726067604ce5a8ca3919edf653496722b433ab from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30347#comment:6>