2019-06-20 22:08:44 +02:00
|
|
|
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 = [
|
2019-06-20 22:08:44 +02:00
|
|
|
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
|
|
|
]
|