diff --git a/apps/perms/signals_handler/refresh_perms.py b/apps/perms/signals_handler/refresh_perms.py index e180d6116..54edc7241 100644 --- a/apps/perms/signals_handler/refresh_perms.py +++ b/apps/perms/signals_handler/refresh_perms.py @@ -27,8 +27,7 @@ def on_user_groups_change(sender, instance, action, reverse, pk_set, **kwargs): else: group_ids = pk_set user_ids = [instance.id] - - group = UserGroup.objects.get(id=group_ids[0]) + group = UserGroup.objects.get(id=list(group_ids)[0]) org_id = group.org_id exists = AssetPermission.user_groups.through.objects.filter(usergroup_id__in=group_ids).exists()