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("dot_graph", views.dot_graph, name="dot_graph"),
|
|
|
|
path("graph", views.graph, name="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
|
|
|
]
|