chore(models): replace deprecated CheckConstraint check arg

This commit is contained in:
Alfredo Di Stasio
2026-03-10 11:29:04 +01:00
parent 078cedff8b
commit 30595d0d89
2 changed files with 4 additions and 2 deletions

View File

@ -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"]),