diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index d6d80e6fd7..efa41a1a5b 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -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", ) ]