From 9ca4dd2498dd44cf431f3f7a8a4a49ab0c2f32ff Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Fri, 30 Aug 2024 17:40:47 +0200 Subject: [PATCH] Rename `check` to `condition` --- pydis_site/apps/api/models/bot/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydis_site/apps/api/models/bot/user.py b/pydis_site/apps/api/models/bot/user.py index 4d317b8e1..df5459a53 100644 --- a/pydis_site/apps/api/models/bot/user.py +++ b/pydis_site/apps/api/models/bot/user.py @@ -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")), ), ]