From 08187c94ed02c45ad40a32244dedeaa7ac71ca87 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Tue, 3 Jun 2025 22:34:39 -0400 Subject: Fixed #36432 -- Fixed a prefetch_related crash on related target subclass queryset. Regression in 626d77e52a3f247358514bcf51c761283968099c. Refs #36116. Thanks Cornelis Poppema for the excellent report. --- docs/releases/5.2.2.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.2.2.txt b/docs/releases/5.2.2.txt index 1a363ad55d..56efb69bfb 100644 --- a/docs/releases/5.2.2.txt +++ b/docs/releases/5.2.2.txt @@ -43,3 +43,7 @@ Bugfixes ` did not account for media type parameters in ``Accept`` headers, reducing specificity in content negotiation (:ticket:`36411`). + +* Fixed a regression in Django 5.2 that caused a crash when using + ``QuerySet.prefetch_related()`` to prefetch a foreign key with a ``Prefetch`` + queryset for a subclass of the foreign target (:ticket:`36432`). -- cgit v1.3