mirror of https://github.com/django/django.git
parent
8403da3696
commit
fc0942ada4
|
@ -205,7 +205,7 @@ class ExclusionConstraint(BaseConstraint):
|
||||||
if isinstance(expression, F):
|
if isinstance(expression, F):
|
||||||
if exclude and expression.name in exclude:
|
if exclude and expression.name in exclude:
|
||||||
return
|
return
|
||||||
rhs_expression = replacement_map.get(expression.name, expression)
|
rhs_expression = expression.replace_references(replacement_map)
|
||||||
else:
|
else:
|
||||||
rhs_expression = expression.replace_references(replacement_map)
|
rhs_expression = expression.replace_references(replacement_map)
|
||||||
if exclude:
|
if exclude:
|
||||||
|
|
Loading…
Reference in New Issue