Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c76089b

Browse files
felixxmsarahboyce
authored andcommitted
[5.0.x] Refs #35560 -- Corrected CheckConstraint argument name in model_fields tests.
1 parent 43aa0c1 commit c76089b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/model_fields/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ class Meta:
626626
}
627627
constraints = [
628628
models.CheckConstraint(
629-
condition=models.Q(a__gt=0),
629+
check=models.Q(a__gt=0),
630630
name="Generated model check constraint a > 0",
631631
)
632632
]
@@ -640,7 +640,7 @@ class Meta:
640640
}
641641
constraints = [
642642
models.CheckConstraint(
643-
condition=models.Q(a__gt=0),
643+
check=models.Q(a__gt=0),
644644
name="Generated model check constraint virtual a > 0",
645645
)
646646
]

0 commit comments

Comments
 (0)