diff options
| author | Mark Gensler <mark.gensler@protonmail.com> | 2024-06-25 15:04:48 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-07-04 11:47:20 +0200 |
| commit | 2da007737cda936ef2ee87271bf9e69eb93cd3fe (patch) | |
| tree | 154dd2a4d8737327339ee73db12dfea4ff15e3a2 /docs | |
| parent | 3b5d04f879f6d3d8ff7f5d82b4a7c801b71b2fd0 (diff) | |
[5.1.x] Fixed #35560 -- Made Model.full_clean() ignore GeneratedFields for constraints.
Accessing generated field values on unsaved models caused a crash when
validating CheckConstraints and UniqueConstraints with expressions.
Backport of 1005c2abd1ef0c156f449641e38c33e473989d37 from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/5.0.7.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/releases/5.0.7.txt b/docs/releases/5.0.7.txt index a0e3acd640..0bee6d57ce 100644 --- a/docs/releases/5.0.7.txt +++ b/docs/releases/5.0.7.txt @@ -10,4 +10,7 @@ issues with severity "low", and several bugs in 5.0.6. Bugfixes ======== -* ... +* Fixed a bug in Django 5.0 that caused a crash of ``Model.full_clean()`` on + unsaved model instances with a ``GeneratedField`` and certain defined + :attr:`Meta.constraints <django.db.models.Options.constraints>` + (:ticket:`35560`). |
