mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #36432 -- Fixed a prefetch_related crash on related target subclass queryset.
Regression in 626d77e52a.
Refs #36116.
Thanks Cornelis Poppema for the excellent report.
This commit is contained in:
committed by
Sarah Boyce
parent
c075508b4d
commit
08187c94ed
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user