1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[5.2.x] Fixed #36648, Refs #33772 -- Accounted for composite pks in first()/last() when aggregating.

Backport of 02eed4f378 from main.
This commit is contained in:
Jacob Walls
2025-10-13 17:22:17 -04:00
parent 94cbd67d9e
commit 8baee531d4
3 changed files with 32 additions and 2 deletions

View File

@@ -10,3 +10,7 @@ Bugfixes
========
* Added compatibility for ``oracledb`` 3.4.0 (:ticket:`36646`).
* Fixed a bug in Django 5.2 where ``QuerySet.first()`` and ``QuerySet.last()``
raised an error on querysets performing aggregation that selected all fields
of a composite primary key.