diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-08-11 06:32:23 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-08-11 09:53:10 +0200 |
commit | fc0942ada47c6ed9bbd25f8a1d721ae0e2859776 (patch) | |
tree | 0f8ca621155e9f5a899d33c1030edf2f88e12114 /django/contrib/postgres/constraints.py | |
parent | 8403da3696730f8b9e7d2ad20c920fcd7c52b62c (diff) | |
download | django-fc0942ada47c6ed9bbd25f8a1d721ae0e2859776.tar.gz |
Used F.replace_references().
Follow up to 63884829acd207404f2a5c3cc1d6b4cd0a822b70.
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 2e6f7f7998..f71a587430 100644 --- a/django/contrib/postgres/constraints.py +++ b/django/contrib/postgres/constraints.py @@ -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: |