mirror of
https://github.com/django/django.git
synced 2025-01-09 09:55:57 +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:
|
||||
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(
|
||||
"Author",
|
||||
fields=[
|
||||
|
Loading…
Reference in New Issue
Block a user