Fixed #34620 -- Fixed serialization crash on m2m fields without natural keys when base querysets use select_related().

Regression in 19e0587ee5.

Thanks Martin Svoboda for the report.
This commit is contained in:
Mariusz Felisiak 2023-06-04 20:49:07 +02:00 committed by GitHub
parent 1136aa5005
commit f9936deed1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 38 additions and 10 deletions

View file

@ -43,3 +43,7 @@ Bugfixes
* Fixed a regression in Django 4.2 that caused a crash of querysets on SQLite
when filtering on ``DecimalField`` against values outside of the defined
range (:ticket:`34590`).
* Fixed a regression in Django 4.2 that caused a serialization crash on a
``ManyToManyField`` without a natural key when its ``Manager``s base
``QuerySet`` used ``select_related()`` (:ticket:`34620`).