mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-05-23 14:45:55 +00:00
fix: replace deprecated check kwarg with condition in CheckConstraint
This commit is contained in:
parent
1f46bb9d15
commit
16b0930195
2 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue