mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed #28395 -- Doc'd that QuerySet.first() can affect aggregation queries.
This commit is contained in:
parent
55b5393bd2
commit
95a14cfc47
1 changed files with 2 additions and 1 deletions
|
|
@ -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::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue