Refactor user group management by moving auth groups to profile.html and creating a dedicated auth_groups_fragment.html for better organization and clarity

This commit is contained in:
Ross
2025-11-03 12:31:49 +00:00
parent eec04e3197
commit 3461e45f93
4 changed files with 103 additions and 57 deletions
+11
View File
@@ -3926,6 +3926,17 @@ def user_toggle_group(request, user_id, group_id):
is_cid_user_manager = request.user.groups.filter(name="cid_user_manager").exists()
if gtype == "auth":
return render(
request,
"generic/partials/auth_groups_fragment.html",
{
"user": user,
"available_auth_groups": available_auth_groups,
"is_cid_user_manager": is_cid_user_manager,
},
)
return render(
request,
"generic/partials/user_groups_fragment.html",