diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-12-23 05:47:13 -0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-23 14:48:16 +0100 |
| commit | eb40426259cbfd8c4d25797c878424542cf1a1a7 (patch) | |
| tree | 2eaeee44b77b8e1a0e829baa7a0f1cafcdb8f6b6 /docs/topics/db | |
| parent | 1e45b06cfd87c4866a201202200ae888a8b8e259 (diff) | |
[3.0.x] Removed unnecessary code-block directives in various docs.
Backport of 5e00bd1f7717149573df9607b848297a520881d3 from master
Diffstat (limited to 'docs/topics/db')
| -rw-r--r-- | docs/topics/db/aggregation.txt | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/topics/db/aggregation.txt b/docs/topics/db/aggregation.txt index 0aa23e8a27..2b9d61778c 100644 --- a/docs/topics/db/aggregation.txt +++ b/docs/topics/db/aggregation.txt @@ -43,9 +43,8 @@ used to track the inventory for a series of online bookstores: Cheat sheet =========== -In a hurry? Here's how to do common aggregate queries, assuming the models above: - -.. code-block:: python +In a hurry? Here's how to do common aggregate queries, assuming the models +above:: # Total number of books. >>> Book.objects.count() @@ -160,9 +159,7 @@ specified values. The syntax for these annotations is identical to that used for the :meth:`~.QuerySet.aggregate` clause. Each argument to ``annotate()`` describes an aggregate that is to be calculated. For example, to annotate books with the -number of authors: - -.. code-block:: python +number of authors:: # Build an annotated queryset >>> from django.db.models import Count |
