32137b6523
python3.3 and python3.4 are supported
85 lines
2.2 KiB
Python
85 lines
2.2 KiB
Python
from django.conf.urls import patterns, url
|
|
|
|
from . import views
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
# User
|
|
url(r'^$',
|
|
views.UserOverview.as_view(),
|
|
name='user_overview'), # TODO: Rename this to user_list
|
|
|
|
url(r'^new/$',
|
|
views.UserCreateView.as_view(),
|
|
name='user_new'),
|
|
|
|
url(r'^new_multiple/$',
|
|
views.UserMultipleCreateView.as_view(),
|
|
name='user_new_multiple'),
|
|
|
|
url(r'^(?P<pk>\d+)/$',
|
|
views.UserDetailView.as_view(),
|
|
name='user_view'),
|
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
|
views.UserUpdateView.as_view(),
|
|
name='user_edit'),
|
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
|
views.UserDeleteView.as_view(),
|
|
name='user_delete'),
|
|
|
|
url(r'^(?P<pk>\d+)/reset_password/$',
|
|
views.ResetPasswordView.as_view(),
|
|
name='user_reset_password'),
|
|
|
|
url(r'^(?P<pk>\d+)/status/activate/$',
|
|
views.SetUserStatusView.as_view(),
|
|
{'action': 'activate'},
|
|
name='user_status_activate'),
|
|
|
|
url(r'^(?P<pk>\d+)/status/deactivate/$',
|
|
views.SetUserStatusView.as_view(),
|
|
{'action': 'deactivate'},
|
|
name='user_status_deactivate'),
|
|
|
|
url(r'^(?P<pk>\d+)/status/toggle/$',
|
|
views.SetUserStatusView.as_view(),
|
|
{'action': 'toggle'},
|
|
name='user_status_toggle'),
|
|
|
|
url(r'^csv_import/$',
|
|
views.UserCSVImportView.as_view(),
|
|
name='user_csv_import'),
|
|
|
|
# Group
|
|
url(r'^group/$',
|
|
views.GroupOverview.as_view(),
|
|
name='user_group_overview'), # TODO: Rename this to group_list
|
|
|
|
url(r'^group/new/$',
|
|
views.GroupCreateView.as_view(),
|
|
name='user_group_new'),
|
|
|
|
url(r'^group/(?P<pk>\d+)/$',
|
|
views.GroupDetailView.as_view(),
|
|
name='user_group_view'),
|
|
|
|
url(r'^group/(?P<pk>\d+)/edit/$',
|
|
views.GroupUpdateView.as_view(),
|
|
name='user_group_edit'),
|
|
|
|
url(r'^group/(?P<pk>\d+)/del/$',
|
|
views.GroupDeleteView.as_view(),
|
|
name='user_group_delete'),
|
|
|
|
# PDF
|
|
url(r'^print/$',
|
|
views.ParticipantsListPDF.as_view(),
|
|
name='user_print'),
|
|
|
|
url(r'^passwords/print/$',
|
|
views.ParticipantsPasswordsPDF.as_view(),
|
|
name='print_passwords'),
|
|
)
|