|
@ -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 |
|
|
from .utils import org_required, resitel_required, viewMethodSwitch |
|
|
from django.views.generic.base import RedirectView |
|
|
from django.views.generic.base import RedirectView |
|
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
urlpatterns = [ |
|
@ -174,8 +174,7 @@ urlpatterns = [ |
|
|
|
|
|
|
|
|
path('temp/reseni/', org_required(views.TabulkaOdevzdanychReseniView.as_view()), name='odevzdavatko_tabulka'), |
|
|
path('temp/reseni/', org_required(views.TabulkaOdevzdanychReseniView.as_view()), name='odevzdavatko_tabulka'), |
|
|
path('temp/reseni/<int:problem>/<int:resitel>/', org_required(views.ReseniProblemuView.as_view()), name='odevzdavatko_reseni_resitele_k_problemu'), |
|
|
path('temp/reseni/<int:problem>/<int:resitel>/', org_required(views.ReseniProblemuView.as_view()), name='odevzdavatko_reseni_resitele_k_problemu'), |
|
|
path('temp/reseni/<int:pk>', org_required(views.DetailReseniView.as_view()), name='odevzdavatko_detail_reseni'), |
|
|
path('temp/reseni/<int:pk>', org_required(viewMethodSwitch(get=views.DetailReseniView.as_view(), post=views.HodnoceniReseniView.as_view())), name='odevzdavatko_detail_reseni'), |
|
|
path('temp/reseni/all', org_required(views.SeznamReseniView.as_view())), |
|
|
path('temp/reseni/all', org_required(views.SeznamReseniView.as_view())), |
|
|
path('temp/reseni/akt', org_required(views.SeznamAktualnichReseniView.as_view())), |
|
|
path('temp/reseni/akt', org_required(views.SeznamAktualnichReseniView.as_view())), |
|
|
|
|
|
|
|
|
] |
|
|
] |
|
|