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:
parent
43aa0c103b
commit
c76089be6f
@ -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",
|
||||
)
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user