summaryrefslogtreecommitdiff
path: root/django/contrib/postgres
diff options
context:
space:
mode:
authorHaki Benita <hakibenita@gmail.com>2026-01-08 10:06:06 +0200
committerJacob Walls <jacobtylerwalls@gmail.com>2026-01-08 11:33:52 -0500
commit459a3d17b973df23fc45328d4e976a270f0edd7f (patch)
treec59ced426dd558ba12e0977c4879081877816636 /django/contrib/postgres
parent091ffc4e5eb35776864b853973097588a36f169e (diff)
Fixed #36852 -- Ignored index_type case in ExclusionConstraint equality check.
Diffstat (limited to 'django/contrib/postgres')
-rw-r--r--django/contrib/postgres/constraints.py2
1 files changed, 1 insertions, 1 deletions
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