replace deprecated CheckConstraint.check by CheckConstraint.condition

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

View File

@@ -154,7 +154,7 @@ class Migration(migrations.Migration):
migrations.AddConstraint(
model_name="userban",
constraint=models.CheckConstraint(
check=models.Q(("expires_at__gte", models.F("created_at"))),
condition=models.Q(("expires_at__gte", models.F("created_at"))),
name="user_ban_end_after_start",
),
),