|
@ -1,7 +1,7 @@ |
|
|
from django.urls import path, include, re_path |
|
|
from django.urls import path, include, re_path |
|
|
from django.contrib.auth.decorators import login_required |
|
|
from django.contrib.auth.decorators import login_required |
|
|
from . import views, export |
|
|
from . import views, export |
|
|
from .utils import org_required, resitel_required, viewMethodSwitch |
|
|
from .utils import org_required, resitel_required, viewMethodSwitch, resitel_or_org_required |
|
|
from django.views.generic.base import RedirectView |
|
|
from django.views.generic.base import RedirectView |
|
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
urlpatterns = [ |
|
@ -138,7 +138,7 @@ urlpatterns = [ |
|
|
path('odhlasit/', views.LogoutView.as_view(), name='logout'), |
|
|
path('odhlasit/', views.LogoutView.as_view(), name='logout'), |
|
|
path('logout/', RedirectView.as_view(pattern_name='logout', permanent=True, query_string=True)), |
|
|
path('logout/', RedirectView.as_view(pattern_name='logout', permanent=True, query_string=True)), |
|
|
path('resitel/', resitel_required(views.ResitelView.as_view()), name='seminar_resitel'), |
|
|
path('resitel/', resitel_required(views.ResitelView.as_view()), name='seminar_resitel'), |
|
|
path('resitel/odevzdana_reseni/', resitel_required(views.PrehledOdevzdanychReseni.as_view()), name='seminar_resitel_odevzdana_reseni'), |
|
|
path('resitel/odevzdana_reseni/', resitel_or_org_required(views.PrehledOdevzdanychReseni.as_view()), name='seminar_resitel_odevzdana_reseni'), |
|
|
path('reset-hesla/', views.PasswordResetView.as_view(), name='reset_password'), |
|
|
path('reset-hesla/', views.PasswordResetView.as_view(), name='reset_password'), |
|
|
path('zmena-hesla/', views.PasswordChangeView.as_view(), name='change_password'), |
|
|
path('zmena-hesla/', views.PasswordChangeView.as_view(), name='change_password'), |
|
|
path('reset-hesla/2/', views.PasswordResetDoneView.as_view(), name='reset_password_done'), |
|
|
path('reset-hesla/2/', views.PasswordResetDoneView.as_view(), name='reset_password_done'), |
|
|