fix: replace deprecated check kwarg with condition in CheckConstraint

This commit is contained in:
Mike 2026-05-22 15:42:34 -07:00 committed by Miguel
parent 1f46bb9d15
commit 16b0930195
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ class Migration(migrations.Migration):
migrations.AddConstraint(
model_name="value",
constraint=models.CheckConstraint(
check=models.Q(
condition=models.Q(
models.Q(
("entity_id__isnull", False),
("entity_uuid__isnull", True),

View file

@ -183,7 +183,7 @@ class Value(models.Model):
name="unique_entity_id_per_attribute",
),
models.CheckConstraint(
check=(
condition=(
models.Q(entity_id__isnull=False, entity_uuid__isnull=True)
| models.Q(entity_id__isnull=True, entity_uuid__isnull=False)
),