|
|
@ -1,7 +1,7 @@ |
|
|
|
from django.urls import path, include, re_path |
|
|
|
from django.contrib.auth.decorators import login_required |
|
|
|
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 |
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
@ -138,7 +138,7 @@ urlpatterns = [ |
|
|
|
path('odhlasit/', views.LogoutView.as_view(), name='logout'), |
|
|
|
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/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('zmena-hesla/', views.PasswordChangeView.as_view(), name='change_password'), |
|
|
|
path('reset-hesla/2/', views.PasswordResetDoneView.as_view(), name='reset_password_done'), |
|
|
|