From 415a08a5283a0f76408ec23c6f6af4a0002d7651 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 7 Dec 2023 20:50:18 +0100 Subject: [5.0.x] Fixed #35024 -- Fixed model instance creation crash on GeneratedField.output_field with backend converters. Regression in d9de74141e8a920940f1b91ed0a3ccb835b55729. This is a long standing issue, however it caused a crash of GeneratedFields for all output fields that have backend-specific converters when the RETURNING clause is not supported (MySQL and SQLite < 3.35). That's why severity was exacerbated. Backport of 5b3b791e9046461901df3898be8544e14d91b931 from main --- docs/releases/5.0.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.0.1.txt b/docs/releases/5.0.1.txt index 871f55ec6d..a8b886c6e2 100644 --- a/docs/releases/5.0.1.txt +++ b/docs/releases/5.0.1.txt @@ -12,3 +12,7 @@ Bugfixes * Reallowed, following a regression in Django 5.0, using a foreign key to a model with a primary key that is not ``AutoField`` in :attr:`.ModelAdmin.list_filter` (:ticket:`35020`). + +* Fixed a long standing bug in handling the ``RETURNING INTO`` clause that + caused a crash when creating a model instance with a ``GeneratedField`` which + ``output_field`` had backend-specific converters (:ticket:`35024`). -- cgit v1.3