Implement basic group listing and re-enabled group creation

This commit is contained in:
Tim Lorsbach
2026-04-14 20:58:12 +02:00
parent 877804c0ff
commit b508511cd6
7 changed files with 64 additions and 13 deletions

View File

@ -2846,9 +2846,15 @@ def groups(request):
{"Group": s.SERVER_URL + "/group"},
]
context["objects"] = Group.objects.all()
# Context for paginated template
context["entity_type"] = "group"
context["api_endpoint"] = f"{s.SERVER_PATH}/api/v1/groups/"
context["per_page"] = s.API_PAGINATION_DEFAULT_PAGE_SIZE
context["list_title"] = "groups"
context["list_mode"] = "combined"
return render(request, "collections/groups_paginated.html", context)
return render(request, "collections/objects_list.html", context)
elif request.method == "POST":
group_name = request.POST.get("group-name")
group_description = request.POST.get("group-description", s.DEFAULT_VALUES["description"])