mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
[3.0.x] Fixed #31190 -- Fixed prefetch_related() crash for GenericForeignKey with custom ContentType foreign key.
Regression indffa3e1992
. Backport of0b013564ef
from master
This commit is contained in:
parent
d7e4d6463c
commit
a56e45a2bf
3 changed files with 19 additions and 1 deletions
|
@ -35,3 +35,7 @@ Bugfixes
|
|||
* Fixed a regression in Django 2.2.7 that caused
|
||||
:meth:`~django.db.models.Model.get_FOO_display` to work incorrectly when
|
||||
overriding inherited choices (:ticket:`31124`).
|
||||
|
||||
* Fixed a regression in Django 3.0 that caused a crash of
|
||||
``QuerySet.prefetch_related()`` for ``GenericForeignKey`` with a custom
|
||||
``ContentType`` foreign key (:ticket:`31190`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue