diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-07-05 08:21:27 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-07-08 12:38:04 +0200 |
| commit | c76089be6f955d0493b3ab81c2beb64db4e203c4 (patch) | |
| tree | b8c4f3e915d4755b4b98038f5880eb2642f8185c | |
| parent | 43aa0c103b08a6d4bf2500080ed389c6303b37e9 (diff) | |
[5.0.x] Refs #35560 -- Corrected CheckConstraint argument name in model_fields tests.
| -rw-r--r-- | tests/model_fields/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
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", ) ] |
