diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-02-19 20:27:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-19 20:27:30 +0100 |
| commit | 65c46d6932c0956d2988d13ec3d9ab3ef9d96d61 (patch) | |
| tree | 5d845071518d30642d239fc894b9682ba1959bb6 /django/contrib/postgres | |
| parent | 86493307f97b9795a74227b6af2d59a267160847 (diff) | |
Fixed #35358, Refs #35234 -- Renamed _check() methods to check() for constraints.
Diffstat (limited to 'django/contrib/postgres')
| -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 2eae101d5a..ea06b10d12 100644 --- a/django/contrib/postgres/constraints.py +++ b/django/contrib/postgres/constraints.py @@ -76,7 +76,7 @@ class ExclusionConstraint(BaseConstraint): expressions.append(expression) return ExpressionList(*expressions).resolve_expression(query) - def _check(self, model, connection): + def check(self, model, connection): references = set() for expr, _ in self.expressions: if isinstance(expr, str): |
