diff options
| author | Botond Beres <botondus@gmail.com> | 2017-10-19 17:36:55 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-25 18:46:25 -0400 |
| commit | 95a14cfc47de5762ddb1400e6e5152f9e3172657 (patch) | |
| tree | ed4a375873aa11ffb2edc48f1c198f91bf68abb5 /docs/ref | |
| parent | 55b5393bd235aa6c55ea9a7da6f0e8b75b204084 (diff) | |
Fixed #28395 -- Doc'd that QuerySet.first() can affect aggregation queries.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/querysets.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 9e19eff7c5..a6d837c14b 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2131,7 +2131,8 @@ the direction is changed. Returns the first object matched by the queryset, or ``None`` if there is no matching object. If the ``QuerySet`` has no ordering defined, then the -queryset is automatically ordered by the primary key. +queryset is automatically ordered by the primary key. This can affect +aggregation results as described in :ref:`aggregation-ordering-interaction`. Example:: |
