From 78edb0c2210f9bf9ad2bf7e20e23965203749918 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Fri, 26 Feb 2021 13:24:31 +0100 Subject: [PATCH] Readded table name for role mappings --- uffd/role/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uffd/role/models.py b/uffd/role/models.py index 533d3677..5371d65e 100644 --- a/uffd/role/models.py +++ b/uffd/role/models.py @@ -18,10 +18,10 @@ class LdapMapping: return Column(ForeignKey('role.id')) class RoleGroup(LdapMapping, db.Model): - pass + __tablename__ = 'role-group' class RoleUser(LdapMapping, db.Model): - pass + __tablename__ = 'role-user' def update_user_groups(user): user.groups.clear() -- GitLab