From 7c75cea413feff6620f77b323850aa158673471b Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Mon, 29 Sep 2025 22:26:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20models=20-=20und=20thus=20tables?= =?UTF-8?q?=20-=20have=20no=20underscores?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ohmyapi/builtin/auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ohmyapi/builtin/auth/models.py b/src/ohmyapi/builtin/auth/models.py index 341a07f..d68ba38 100644 --- a/src/ohmyapi/builtin/auth/models.py +++ b/src/ohmyapi/builtin/auth/models.py @@ -24,7 +24,7 @@ class User(Model): is_admin: bool = field.BooleanField(default=False) is_staff: bool = field.BooleanField(default=False) groups: field.ManyToManyRelation[Group] = field.ManyToManyField( - "ohmyapi_auth.Group", related_name="users", through="user_groups" + "ohmyapi_auth.Group", related_name="users", through="usergroups" ) class Schema: