summaryrefslogtreecommitdiff
path: root/django/contrib/postgres
diff options
context:
space:
mode:
authorStéphane "Twidi" Angel <s.angel@twidi.com>2022-07-07 04:26:49 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-08 08:17:42 +0200
commitccbf714ebeff51d1370789e5e487a978d0e2dbfb (patch)
treeb358e51931b1bad5f0890969cb1630f7792d81cd /django/contrib/postgres
parent41019e48bbf082c985e6ba3bad34d118b903bff1 (diff)
Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle violation_error_message.
Regression in 667105877e6723c6985399803a364848891513cc.
Diffstat (limited to 'django/contrib/postgres')
-rw-r--r--django/contrib/postgres/constraints.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/postgres/constraints.py b/django/contrib/postgres/constraints.py
index c19602b26e..2e6f7f7998 100644
--- a/django/contrib/postgres/constraints.py
+++ b/django/contrib/postgres/constraints.py
@@ -177,6 +177,7 @@ class ExclusionConstraint(BaseConstraint):
and self.deferrable == other.deferrable
and self.include == other.include
and self.opclasses == other.opclasses
+ and self.violation_error_message == other.violation_error_message
)
return super().__eq__(other)