jumpserver/apps/users/urls.py

14 lines
525 B
Python
Raw Normal View History

from django.conf.urls import url
2016-08-14 09:21:04 +00:00
2016-08-16 14:13:06 +00:00
from .views import UserListView, UserAddView, UserUpdateView, UserDeleteView, UserDetailView
app_name = 'users'
urlpatterns = [
2016-08-14 09:21:04 +00:00
url(r'^$', UserListView.as_view(), name='user-list'),
2016-08-16 14:13:06 +00:00
url(r'^(?P<pk>[0-9]+)/$', UserDetailView.as_view(), name='user-detail'),
2016-08-14 11:18:41 +00:00
url(r'^add/$', UserAddView.as_view(), name='user-add'),
url(r'^(?P<pk>[0-9]+)/edit/$', UserUpdateView.as_view(), name='user-edit'),
2016-08-16 14:13:06 +00:00
url(r'^(?P<pk>[0-9]+)/delete/$', UserDeleteView.as_view(), name='user-delete'),
]