diff options
| author | nessita <124304+nessita@users.noreply.github.com> | 2023-07-20 14:45:44 -0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-07-20 19:49:01 +0200 |
| commit | c99d9356009a0a420fc366af74161a78bdae2612 (patch) | |
| tree | 8c8674948b54952c6c1fa5f1e478bf1b091a11d8 /docs/ref/models | |
| parent | da92a971a087bac653015c384300b968c20fca35 (diff) | |
[4.2.x] Fixed typo in docs/ref/models/querysets.txt.
Removed assignment in example for Blog annotation to match shown result.
Backport of addbc90049083f1d5f7ac138ed00111b71a75233 from main
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/querysets.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index dcded8c3c0..a3796790a2 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2830,7 +2830,7 @@ number of authors that have contributed blog entries: .. code-block:: pycon >>> from django.db.models import Count - >>> q = Blog.objects.aggregate(Count("entry")) + >>> Blog.objects.aggregate(Count("entry")) {'entry__count': 16} By using a keyword argument to specify the aggregate function, you can @@ -2838,7 +2838,7 @@ control the name of the aggregation value that is returned: .. code-block:: pycon - >>> q = Blog.objects.aggregate(number_of_entries=Count("entry")) + >>> Blog.objects.aggregate(number_of_entries=Count("entry")) {'number_of_entries': 16} For an in-depth discussion of aggregation, see :doc:`the topic guide on |
