replace deprecated CheckConstraint.check by CheckConstraint.condition

This commit is contained in:
imperosol committed 2025-08-28 16:31:54 +02:00
1 parent 23103950b8
commit e864e82573
8 files changed
+8 -8

No files matched your search

@@ -54,7 +54,7 @@ class Migration(migrations.Migration):
migrations.AddConstraint(
model_name="newsdate",
constraint=models.CheckConstraint(
check=models.Q(("end_date__gte", models.F("start_date"))),
condition=models.Q(("end_date__gte", models.F("start_date"))),
name="news_date_end_date_after_start_date",
),
),