summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorHal Blackburn <hwtb2@cam.ac.uk>2025-11-04 05:58:46 +0000
committerJacob Walls <jacobtylerwalls@gmail.com>2025-11-04 12:00:58 -0500
commitcbdf128cb316bccf9ca3b3b4966e57bd050bfc8a (patch)
treee4c173ab14835ad00637a4a31f90f79f8e40c6d7 /docs/releases
parent6775888470317a6d69121779b489bb2dc7350318 (diff)
[5.2.x] Fixed #36704 -- Fixed system check error for proxy model with a composite pk.
Proxy models subclassing a model with a CompositePrimaryKey were incorrectly reporting check errors because the check that requires only local fields to be used in a composite pk was evaluated against the proxy subclass, which has no fields. To fix this, composite pk field checks are not evaluated against proxy subclasses, as none of the checks are applicable to proxy subclasses. This also has the benefit of not double-reporting real check errors from an invalid superclass pk. Thanks Clifford Gama for the review. Backport of 74564946c3b42a2ef7d087047e49873847a7e1d9 from main.
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/5.2.8.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/releases/5.2.8.txt b/docs/releases/5.2.8.txt
index a75db9cbc8..62cb32f55c 100644
--- a/docs/releases/5.2.8.txt
+++ b/docs/releases/5.2.8.txt
@@ -16,3 +16,6 @@ Bugfixes
* 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.
+
+* Fixed a bug in Django 5.2 where proxy models having a ``CompositePrimaryKey``
+ incorrectly raised a ``models.E042`` system check error.