1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

[5.0.x] Fixed #35019 -- Fixed save() on models with both GeneratedFields and ForeignKeys.

Thanks Deb Kumar Das for the report.

Regression in f333e3513e.

Backport of b287af5dc9 from main
This commit is contained in:
Sarah Boyce
2023-12-06 23:19:09 +01:00
committed by Mariusz Felisiak
parent 6c992dc003
commit 03af8fbd0f
4 changed files with 32 additions and 3 deletions

View File

@@ -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`).