Skip to content

Commit 62e9fd1

Browse files
committed
fis saml_uer_group function
1 parent 84bf56a commit 62e9fd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/users/saml.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ def get_or_create_user(self, *args, **kwargs):
1616
def saml_user_group():
1717
group_name = getattr(settings, 'SAML_GROUP_NAME', None)
1818
if group_name:
19-
return Group.objects.get_or_create(name=group_name)
19+
group, _ = Group.objects.get_or_create(name=group_name)
20+
return group

0 commit comments

Comments
 (0)