From 333cfab512689490ea8a6a95598a94d77816fa2d Mon Sep 17 00:00:00 2001 From: David Sanders Date: Mon, 5 Aug 2024 08:22:29 +0200 Subject: [5.0.x] Fixed #35638 -- Updated validate_constraints to consider db_default. Backport of 509763c79952cde02d9f5b584af4278bdbed77b2 from main. --- docs/releases/5.0.8.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.0.8.txt b/docs/releases/5.0.8.txt index 31de9985c4..5cc3faec98 100644 --- a/docs/releases/5.0.8.txt +++ b/docs/releases/5.0.8.txt @@ -28,3 +28,7 @@ Bugfixes * Fixed a bug in Django 5.0 that caused a system check crash when ``ModelAdmin.date_hierarchy`` was a ``GeneratedField`` with an ``output_field`` of ``DateField`` or ``DateTimeField`` (:ticket:`35628`). + +* Fixed a bug in Django 5.0 which caused constraint validation to either crash + or incorrectly raise validation errors for constraints referring to fields + using ``Field.db_default`` (:ticket:`35638`). -- cgit v1.3