chore(models): replace deprecated CheckConstraint check arg
This commit is contained in:
@ -54,7 +54,7 @@ class Season(models.Model):
|
||||
class Meta:
|
||||
ordering = ["-start_date"]
|
||||
constraints = [
|
||||
models.CheckConstraint(check=models.Q(end_date__gte=models.F("start_date")), name="ck_season_dates")
|
||||
models.CheckConstraint(condition=models.Q(end_date__gte=models.F("start_date")), name="ck_season_dates")
|
||||
]
|
||||
indexes = [
|
||||
models.Index(fields=["is_current"]),
|
||||
|
||||
Reference in New Issue
Block a user