Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
768 B
14 lines
768 B
from django.urls import path
|
|
from django.contrib.auth.decorators import user_passes_test
|
|
from . import views
|
|
|
|
staff_member_required = user_passes_test(lambda u: u.is_staff)
|
|
|
|
urlpatterns = [
|
|
path('prednasky/', views.newPrednaska),
|
|
path('prednasky/hotovo', views.Prednaska_hotovo),
|
|
path('prednasky/metaseznam_prednasek', staff_member_required(views.MetaSeznamListView.as_view()), name='metaseznam-list'),
|
|
path('prednasky/seznam_prednasek/<int:seznam>/export', staff_member_required(views.SeznamExportView), name='seznam-export'),
|
|
path('prednasky/seznam_prednasek/<int:seznam>/', staff_member_required(views.SeznamListView.as_view()), name='seznam-list'),
|
|
# path('korektury/help/', staff_member_required(views.KorekturyHelpView.as_view()), name='korektury-help'),
|
|
]
|
|
|