mirror of
https://github.com/django/django.git
synced 2025-01-09 18:06:34 +00:00
[5.0.x] Refs #35625 -- Corrected CheckConstraint argument name in migrations.test_operations.
This commit is contained in:
parent
e18601273a
commit
ca9880b98f
@ -4117,7 +4117,7 @@ class OperationTests(OperationTestBase):
|
|||||||
]
|
]
|
||||||
for check, valid, invalid in checks:
|
for check, valid, invalid in checks:
|
||||||
with self.subTest(condition=check, valid=valid, invalid=invalid):
|
with self.subTest(condition=check, valid=valid, invalid=invalid):
|
||||||
constraint = models.CheckConstraint(condition=check, name="constraint")
|
constraint = models.CheckConstraint(check=check, name="constraint")
|
||||||
operation = migrations.CreateModel(
|
operation = migrations.CreateModel(
|
||||||
"Author",
|
"Author",
|
||||||
fields=[
|
fields=[
|
||||||
|
Loading…
Reference in New Issue
Block a user