From 453565a883824a0df027e7f223791e4e2b9116b2 Mon Sep 17 00:00:00 2001 From: Art Lukyanchyk <artiom.lukyanchyk@hs-hannover.de> Date: Mon, 18 Mar 2024 16:30:20 +0100 Subject: [PATCH] Use the Group model from the updated hsh app version in hsh_compat --- ssoauth/extras/hsh_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssoauth/extras/hsh_compat.py b/ssoauth/extras/hsh_compat.py index 2aaf086..fd1e152 100644 --- a/ssoauth/extras/hsh_compat.py +++ b/ssoauth/extras/hsh_compat.py @@ -28,6 +28,6 @@ def get_group_names_for_user(user): except (Account.DoesNotExist, Account.MultipleObjectsReturned,) as e: logger.error("hsh.Account not found for {user}. {e.__class__.__name__}: {e}".format(user=user, e=e)) return set() - hsh_groups = hsh_account.auth_groups.filter(GROUP_NAME_LOOKUP) + hsh_groups = hsh_account.groups.filter(GROUP_NAME_LOOKUP) return {g.name for g in hsh_groups} -- GitLab