diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-07 17:07:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 17:07:53 +0200 |
commit | 619f26d2895d121854b1bed1b535d42b722e2eba (patch) | |
tree | fb7b6e9d2b3b0a6ff362679fba9b4b87f9bf5d01 /django/contrib/postgres/constraints.py | |
parent | e3cfba0029516aafe40f963378e234df2c0d33bb (diff) | |
download | django-619f26d2895d121854b1bed1b535d42b722e2eba.tar.gz |
Refs #32074 -- Made ExclusionConstraint.__repr__() use Deferrable.__repr__().
Follow up to c6859f1a684edec7bb33038b4408046a4db0c16d.
Diffstat (limited to 'django/contrib/postgres/constraints.py')
-rw-r--r-- | django/contrib/postgres/constraints.py | 2 |
1 files changed, 1 insertions, 1 deletions
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), ) |