From 619f26d2895d121854b1bed1b535d42b722e2eba Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 7 Apr 2021 17:07:53 +0200 Subject: [PATCH] Refs #32074 -- Made ExclusionConstraint.__repr__() use Deferrable.__repr__(). Follow up to c6859f1a684edec7bb33038b4408046a4db0c16d. --- django/contrib/postgres/constraints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/postgres/constraints.py b/django/contrib/postgres/constraints.py index 32c6bb622e..48dfd2bbc0 100644 --- a/django/contrib/postgres/constraints.py +++ b/django/contrib/postgres/constraints.py @@ -161,7 +161,7 @@ class ExclusionConstraint(BaseConstraint): repr(self.expressions), repr(self.name), '' if self.condition is None else ' condition=%s' % self.condition, - '' if self.deferrable is None else ' deferrable=%s' % self.deferrable, + '' if self.deferrable is None else ' deferrable=%r' % self.deferrable, '' if not self.include else ' include=%s' % repr(self.include), '' if not self.opclasses else ' opclasses=%s' % repr(self.opclasses), )