diff options
| author | Simon Charette <charette.s@gmail.com> | 2025-06-03 22:34:39 -0400 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-06-04 10:48:13 +0200 |
| commit | 3340d4144605bd150906d070ae3e910941fa83c9 (patch) | |
| tree | 69108e27d670e24d1b9a95d9127bdac902cc1fa8 /docs | |
| parent | 0c548e62d0166c559ca59845079c2b70730fcfe7 (diff) | |
[5.2.x] Fixed #36432 -- Fixed a prefetch_related crash on related target subclass queryset.
Regression in 626d77e52a3f247358514bcf51c761283968099c.
Refs #36116.
Thanks Cornelis Poppema for the excellent report.
Backport of 08187c94ed02c45ad40a32244dedeaa7ac71ca87 from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/5.2.2.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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 <django.http.HttpRequest.get_preferred_type>` 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`). |
