2016-08-09 06:42:21 +00:00
|
|
|
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
|
2016-08-18 17:39:08 +00:00
|
|
|
from .views import UserGroupListView, UserGroupAddView, UserGroupUpdateView, UserGroupDeleteView, UserGroupDetailView
|
2016-08-09 06:42:21 +00:00
|
|
|
|
|
|
|
app_name = 'users'
|
|
|
|
|
|
|
|
urlpatterns = [
|
2016-08-18 17:39:08 +00:00
|
|
|
url(r'^user/$', UserListView.as_view(), name='user-list'),
|
|
|
|
url(r'^user/(?P<pk>[0-9]+)/$', UserDetailView.as_view(), name='user-detail'),
|
|
|
|
url(r'^user/add/$', UserAddView.as_view(), name='user-add'),
|
|
|
|
url(r'^user/(?P<pk>[0-9]+)/edit/$', UserUpdateView.as_view(), name='user-edit'),
|
|
|
|
url(r'^user/(?P<pk>[0-9]+)/delete/$', UserDeleteView.as_view(), name='user-delete'),
|
|
|
|
url(r'^usergroup/$', UserGroupListView.as_view(), name='usergroup-list'),
|
|
|
|
url(r'^usergroup/(?P<pk>[0-9]+)/$', UserGroupDetailView.as_view(), name='usergroup-detail'),
|
|
|
|
url(r'^usergroup/add/$', UserGroupAddView.as_view(), name='usergroup-add'),
|
|
|
|
url(r'^usergroup/(?P<pk>[0-9]+)/edit/$', UserGroupUpdateView.as_view(), name='usergroup-edit'),
|
|
|
|
url(r'^usergroup/(?P<pk>[0-9]+)/delete/$', UserGroupDeleteView.as_view(), name='usergroup-delete'),
|
2016-08-09 06:42:21 +00:00
|
|
|
]
|