Skip to content

Commit

Permalink
Rename check to condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit committed Aug 30, 2024
1 parent 11a40cc commit 798dc08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pydis_site/apps/api/migrations/0093_user_alts.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ class Migration(migrations.Migration):
),
migrations.AddConstraint(
model_name='useraltrelationship',
constraint=models.CheckConstraint(check=models.Q(('source', models.F('target')), _negated=True), name='api_useraltrelationship_prevent_alt_to_self'),
constraint=models.CheckConstraint(condition=models.Q(('source', models.F('target')), _negated=True), name='api_useraltrelationship_prevent_alt_to_self'),
),
]
2 changes: 1 addition & 1 deletion pydis_site/apps/api/models/bot/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ class Meta:
),
models.CheckConstraint(
name="%(app_label)s_%(class)s_prevent_alt_to_self",
check=~models.Q(source=models.F("target")),
condition=~models.Q(source=models.F("target")),
),
]

0 comments on commit 798dc08

Please sign in to comment.