From 459a3d17b973df23fc45328d4e976a270f0edd7f Mon Sep 17 00:00:00 2001 From: Haki Benita Date: Thu, 8 Jan 2026 10:06:06 +0200 Subject: Fixed #36852 -- Ignored index_type case in ExclusionConstraint equality check. --- django/contrib/postgres/constraints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/contrib/postgres/constraints.py b/django/contrib/postgres/constraints.py index 90441a51ce..13a90e4b7f 100644 --- a/django/contrib/postgres/constraints.py +++ b/django/contrib/postgres/constraints.py @@ -148,7 +148,7 @@ class ExclusionConstraint(CheckPostgresInstalledMixin, BaseConstraint): if isinstance(other, self.__class__): return ( self.name == other.name - and self.index_type == other.index_type + and self.index_type.lower() == other.index_type.lower() and self.expressions == other.expressions and self.condition == other.condition and self.deferrable == other.deferrable -- cgit v1.3