mirror of
https://github.com/django/django.git
synced 2024-11-29 14:46:18 +01:00
Refs #32074 -- Made ExclusionConstraint.__repr__() use Deferrable.__repr__().
Follow up to c6859f1a68
.
This commit is contained in:
parent
e3cfba0029
commit
619f26d289
@ -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),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user