Refs #32074 -- Made ExclusionConstraint.__repr__() use Deferrable.__repr__().

Follow up to c6859f1a68.
This commit is contained in:
Mariusz Felisiak 2021-04-07 17:07:53 +02:00 committed by GitHub
parent e3cfba0029
commit 619f26d289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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),
)