mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +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
@@ -1443,7 +1443,7 @@ class ChangeListTests(TestCase):
|
||||
["field_3", "related_4_id"],
|
||||
)
|
||||
],
|
||||
models.CheckConstraint(check=models.Q(id__gt=0), name="foo"),
|
||||
models.CheckConstraint(condition=models.Q(id__gt=0), name="foo"),
|
||||
models.UniqueConstraint(
|
||||
fields=["field_5"],
|
||||
condition=models.Q(id__gt=10),
|
||||
|
||||
Reference in New Issue
Block a user