From f9936deed1ff13b20e18bd9ca2b0750b52706b6c Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sun, 4 Jun 2023 20:49:07 +0200 Subject: Fixed #34620 -- Fixed serialization crash on m2m fields without natural keys when base querysets use select_related(). Regression in 19e0587ee596debf77540d6a08ccb6507e60b6a7. Thanks Martin Svoboda for the report. --- docs/releases/4.2.2.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.2.2.txt b/docs/releases/4.2.2.txt index 1bada4073b..9b7d6c1b66 100644 --- a/docs/releases/4.2.2.txt +++ b/docs/releases/4.2.2.txt @@ -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`). -- cgit v1.3