mamweb/korektury/urls.py

13 lines
555 B
Python
Raw Normal View History

2015-12-01 23:24:21 +01:00
from django.conf.urls import * # NOQA
2018-08-20 22:30:16 +02:00
from django.conf.urls import url
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 = [
2019-05-11 01:15:05 +02:00
url(r'^korektury/$', staff_member_required(views.KorekturyListView.as_view()), name='korektury-list'),
url(r'^korektury/(?P<pdf>\d+)/$', staff_member_required(views.KorekturyView.as_view()), name='korektury'),
url(r'^korektury/help/', staff_member_required(views.KorekturyHelpView.as_view()), name='korektury-help'),
2016-01-09 17:28:20 +01:00
]