summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Gensler <mark.gensler@protonmail.com>2024-06-25 15:04:48 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-07-04 11:49:27 +0200
commit0602fc2124f3e1f1562d497607e0efd5474b5831 (patch)
tree99235eb697e3c70ae02dc24009a65956accd0546 /docs
parent03b908ffed00510b49207d7334d9e392dce5f046 (diff)
[5.0.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.txt5
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`).