mirror of
https://github.com/django/django.git
synced 2025-01-26 18:19:18 +00:00
Used F.replace_references().
Follow up to 63884829acd207404f2a5c3cc1d6b4cd0a822b70.
This commit is contained in:
parent
8403da3696
commit
fc0942ada4
@ -205,7 +205,7 @@ class ExclusionConstraint(BaseConstraint):
|
||||
if isinstance(expression, F):
|
||||
if exclude and expression.name in exclude:
|
||||
return
|
||||
rhs_expression = replacement_map.get(expression.name, expression)
|
||||
rhs_expression = expression.replace_references(replacement_map)
|
||||
else:
|
||||
rhs_expression = expression.replace_references(replacement_map)
|
||||
if exclude:
|
||||
|
Loading…
x
Reference in New Issue
Block a user