mamweb/korektury/urls.py

12 lines
504 B
Python
Raw Normal View History

from django.urls import path
2015-12-28 11:03:28 +01:00
from django.contrib.auth.decorators import user_passes_test
2015-12-01 23:24:21 +01:00
from . import views
2015-12-28 11:03:28 +01:00
staff_member_required = user_passes_test(lambda u: u.is_staff)
2016-01-09 17:28:20 +01:00
urlpatterns = [
path('korektury/', staff_member_required(views.KorekturyListView.as_view()), name='korektury-list'),
path('korektury/<int:pdf>/', staff_member_required(views.KorekturyView.as_view()), name='korektury'),
path('korektury/help/', staff_member_required(views.KorekturyHelpView.as_view()), name='korektury-help'),
2016-01-09 17:28:20 +01:00
]