diff options
| author | Botond Beres <botondus@gmail.com> | 2017-10-19 17:36:55 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-25 19:02:21 -0400 |
| commit | 854aec4801d74fa00a6695b58c95257dadc1fc83 (patch) | |
| tree | 2d0ca0459f51444838eba9c0107ad5b907c39347 | |
| parent | f5184ae5dc370892d1b96576f68962b2c1c6c979 (diff) | |
[2.0.x] Fixed #28395 -- Doc'd that QuerySet.first() can affect aggregation queries.
Backport of 95a14cfc47de5762ddb1400e6e5152f9e3172657 from master
| -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 2e8b53debf..561d99c01c 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2169,7 +2169,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:: |
