wiki-eleves/wiki_groups/urls.py

32 lines
1.1 KiB
Python
Raw Normal View History

2019-12-29 18:29:49 +01:00
from django.urls import path
2021-07-24 04:13:47 +02:00
from wiki_groups import views
2019-12-29 18:29:49 +01:00
app_name = "wiki_groups"
urlpatterns = [
path("", views.GroupList.as_view(), name="list"),
2019-12-29 18:29:49 +01:00
path("dot_graph", views.dot_graph, name="dot_graph"),
2021-07-24 04:13:47 +02:00
path("managed", views.ManagedGroupsView.as_view(), name="managed-groups"),
path("<int:pk>", views.WikiGroupView.as_view(), name="admin-group"),
path(
"<int:pk>/rm-user/<int:user_pk>",
views.RemoveUserView.as_view(),
name="remove-user",
),
path(
"<int:pk>/rm-manager/<int:user_pk>",
views.RemoveManagerView.as_view(),
name="remove-manager",
),
path(
"<int:pk>/rm-group/<int:group_pk>",
views.RemoveGroupView.as_view(),
name="remove-group",
),
path("<int:pk>/add-user", views.AddUserView.as_view(), name="add-user"),
path("<int:pk>/add-manager", views.AddManagerView.as_view(), name="add-manager"),
path("<int:pk>/add-group", views.AddGroupView.as_view(), name="add-group"),
path("<int:pk>/create-group", views.CreateGroupView.as_view(), name="create-group"),
path("<int:pk>/delete", views.DeleteGroupView.as_view(), name="delete-group"),
2019-12-29 18:29:49 +01:00
]