13 lines
708 B
Python
13 lines
708 B
Python
from django.conf.urls import * # NOQA
|
|
from django.conf.urls import url
|
|
from django.contrib.auth.decorators import user_passes_test
|
|
from . import views
|
|
|
|
staff_member_required = user_passes_test(lambda u: u.is_staff)
|
|
|
|
urlpatterns = [
|
|
url(r'^korektury/$', staff_member_required(views.KorekturyAktualniListView.as_view()), name='korektury-list'),
|
|
url(r'^korektury/zastarale/$', staff_member_required(views.KorekturyZastaraleListView.as_view()), name='korektury-list-zastarale'),
|
|
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'),
|
|
]
|