mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition.
Once the deprecation period ends CheckConstraint.check() can become the documented method that performs system checks for BaseConstraint subclasses.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f82c67aa21
commit
daf7d482db
@@ -388,7 +388,7 @@ Models
|
||||
``OneToOneField`` emulates the behavior of the SQL constraint ``ON DELETE
|
||||
RESTRICT``.
|
||||
|
||||
* :attr:`.CheckConstraint.check` now supports boolean expressions.
|
||||
* ``CheckConstraint.check`` now supports boolean expressions.
|
||||
|
||||
* The :meth:`.RelatedManager.add`, :meth:`~.RelatedManager.create`, and
|
||||
:meth:`~.RelatedManager.set` methods now accept callables as values in the
|
||||
|
||||
@@ -422,6 +422,9 @@ Miscellaneous
|
||||
* Overriding existing converters with ``django.urls.register_converter()`` is
|
||||
deprecated.
|
||||
|
||||
* The ``check`` keyword argument of ``CheckConstraint`` is deprecated in favor
|
||||
of ``condition``.
|
||||
|
||||
Features removed in 5.1
|
||||
=======================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user