delete groups

Whoops, forgot to add this functionality earlier.

- allow owner to delete a group
- change all group lists to closed curation with group=False when group deleted
This commit is contained in:
Hugh Rundle
2021-10-16 17:35:36 +11:00
parent 85784f07d2
commit 2a31bf2f0c
5 changed files with 30 additions and 11 deletions

View File

@ -258,6 +258,7 @@ urlpatterns = [
re_path(
r"^group/(?P<group_id>\d+)(.json)?/?$", views.Group.as_view(), name="group"
),
re_path(r"^group/delete/(?P<group_id>\d+)/?$", views.delete_group, name="delete-group"),
re_path(
r"^group/(?P<group_id>\d+)/add-users/?$",
views.FindUsers.as_view(),