diff options
| author | Xavier Fernandez <xavier.fernandez@beta.gouv.fr> | 2023-02-20 14:28:21 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-22 09:37:58 +0100 |
| commit | ad18a0102cc2968914232814c6554763f15abbe3 (patch) | |
| tree | a1f1bf008334d871cb97951be3f7513cafe7d21b /docs/ref/models | |
| parent | 31cd2852cb86197d5f3f5a637184a078ab0615f8 (diff) | |
Fixed #34355 -- Deprecated passing positional arguments to BaseConstraint.
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/constraints.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ref/models/constraints.txt b/docs/ref/models/constraints.txt index 6ce00ae979..baaacd8754 100644 --- a/docs/ref/models/constraints.txt +++ b/docs/ref/models/constraints.txt @@ -48,12 +48,16 @@ option. ``BaseConstraint`` ================== -.. class:: BaseConstraint(name, violation_error_message=None) +.. class:: BaseConstraint(*, name, violation_error_message=None) Base class for all constraints. Subclasses must implement ``constraint_sql()``, ``create_sql()``, ``remove_sql()`` and ``validate()`` methods. + .. deprecated:: 5.0 + + Support for passing positional arguments is deprecated. + All constraints have the following parameters in common: ``name`` |
