From c76089be6f955d0493b3ab81c2beb64db4e203c4 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 5 Jul 2024 08:21:27 +0200 Subject: [PATCH] [5.0.x] Refs #35560 -- Corrected CheckConstraint argument name in model_fields tests. --- tests/model_fields/models.py | 4 ++-- 1 file 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", ) ]