mirror of
				https://github.com/django/django.git
				synced 2025-10-29 08:36:09 +00:00 
			
		
		
		
	[2.0.x] Fixed #28395 -- Doc'd that QuerySet.first() can affect aggregation queries.
Backport of 95a14cfc47 from master
			
			
This commit is contained in:
		| @@ -2169,7 +2169,8 @@ the direction is changed. | |||||||
|  |  | ||||||
| Returns the first object matched by the queryset, or ``None`` if there | 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 | 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:: | Example:: | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user