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

[5.0.x] Fixed #35350 -- Fixed save() with pk set on models with GeneratedFields.

Thanks Matt Hegarty for the report and Simon Charette and Natalia Bidart for the reviews.

Regression in f333e35.

Backport of 8b53560eea from main.
This commit is contained in:
Sarah Boyce
2024-04-08 18:10:14 +02:00
parent 58061fd2b4
commit f075a19e85
3 changed files with 17 additions and 5 deletions

View File

@@ -9,4 +9,6 @@ Django 5.0.5 fixes several bugs in 5.0.4.
Bugfixes
========
* ...
* Fixed a bug in Django 5.0 that caused a crash of ``Model.save()`` when
creating an instance of a model with a ``GeneratedField`` and providing a
primary key (:ticket:`35350`).