1
0
mirror of https://github.com/django/django.git synced 2025-01-09 09:55:57 +00:00

[5.0.x] Refs #35560 -- Corrected CheckConstraint argument name in model_fields tests.

This commit is contained in:
Mariusz Felisiak 2024-07-05 08:21:27 +02:00 committed by Sarah Boyce
parent 43aa0c103b
commit c76089be6f

View File

@ -626,7 +626,7 @@ class GeneratedModelCheckConstraint(GeneratedModelBase):
}
constraints = [
models.CheckConstraint(
condition=models.Q(a__gt=0),
check=models.Q(a__gt=0),
name="Generated model check constraint a > 0",
)
]
@ -640,7 +640,7 @@ class GeneratedModelCheckConstraintVirtual(GeneratedModelVirtualBase):
}
constraints = [
models.CheckConstraint(
condition=models.Q(a__gt=0),
check=models.Q(a__gt=0),
name="Generated model check constraint virtual a > 0",
)
]