From b287af5dc954628d4b336aefc5027b2edceee64b Mon Sep 17 00:00:00 2001 From: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Date: Wed, 6 Dec 2023 23:19:09 +0100 Subject: Fixed #35019 -- Fixed save() on models with both GeneratedFields and ForeignKeys. Thanks Deb Kumar Das for the report. Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. --- 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 a8b886c6e2..6b0b6de66c 100644 --- a/docs/releases/5.0.1.txt +++ b/docs/releases/5.0.1.txt @@ -16,3 +16,7 @@ Bugfixes * 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`). + +* Fixed a regression in Django 5.0 that caused a crash of ``Model.save()`` for + models with both ``GeneratedField`` and ``ForeignKey`` fields + (:ticket:`35019`). -- cgit v1.3