From 345e3cf57f1e9bf870482cebf36b169d79ae63d2 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 26 Mar 2024 22:58:47 +0100 Subject: [5.0.x] Fixed #35329 -- Fixed migrations crash when adding partial unique constraints with nulls_distinct. Bug in 595a2abb58e04caa4d55fb2589bb80fb2a8fdfa1. Thanks Lucas Lemke Saunitti for the report. Backport of b98271a6e42107233311d17f5d7bc74fbb47f22c from main --- docs/releases/5.0.4.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.0.4.txt b/docs/releases/5.0.4.txt index 9b2fd6b170..6503f1ada3 100644 --- a/docs/releases/5.0.4.txt +++ b/docs/releases/5.0.4.txt @@ -17,3 +17,7 @@ Bugfixes * Fixed a regression in Django 5.0 where the ``AdminFileWidget`` could be rendered with two ``id`` attributes on the "Clear" checkbox (:ticket:`35273`). + +* Fixed a bug in Django 5.0 that caused a migration crash on PostgreSQL 15+ + when adding a partial ``UniqueConstraint`` with ``nulls_distinct`` + (:ticket:`35329`). -- cgit v1.3