From ad18a0102cc2968914232814c6554763f15abbe3 Mon Sep 17 00:00:00 2001 From: Xavier Fernandez Date: Mon, 20 Feb 2023 14:28:21 +0100 Subject: Fixed #34355 -- Deprecated passing positional arguments to BaseConstraint. --- docs/ref/models/constraints.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/ref') 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`` -- cgit v1.3