Ticket #32392: constraints.diff
File constraints.diff, 638 bytes (added by , 4 years ago) |
---|
-
django/contrib/postgres/constraints.py
diff --git a/django/contrib/postgres/constraints.py b/django/contrib/postgres/constraints.py index a844b899b7..00c6649d27 100644
a b class ExclusionConstraint(BaseConstraint): 80 80 except IndexError: 81 81 pass 82 82 sql = sql % tuple(schema_editor.quote_value(p) for p in params) 83 expressions.append(' %sWITH %s' % (sql, operator))83 expressions.append('(%s) WITH %s' % (sql, operator)) 84 84 return expressions 85 85 86 86 def _get_condition_sql(self, compiler, schema_editor, query):