Browse Source

Posli -> Vloz

pull/30/head
Jonas Havelka 1 year ago
parent
commit
37d29fcf58
  1. 0
      odevzdavatko/templates/odevzdavatko/vloz_reseni.html
  2. 2
      odevzdavatko/urls.py
  3. 4
      odevzdavatko/views.py

0
odevzdavatko/templates/odevzdavatko/posli_reseni.html → odevzdavatko/templates/odevzdavatko/vloz_reseni.html

2
odevzdavatko/urls.py

@ -19,7 +19,7 @@ from seminar.utils import org_required, resitel_required, viewMethodSwitch, \
from . import views from . import views
urlpatterns = [ urlpatterns = [
path('org/add_solution', org_required(views.PosliReseniView.as_view()), name='seminar_vloz_reseni'), path('org/add_solution', org_required(views.VlozReseniView.as_view()), name='seminar_vloz_reseni'),
path('resitel/nahraj_reseni', resitel_required(views.NahrajReseniRozcestnikTematekView.as_view()), name='seminar_nahraj_reseni'), path('resitel/nahraj_reseni', resitel_required(views.NahrajReseniRozcestnikTematekView.as_view()), name='seminar_nahraj_reseni'),
path('resitel/nahraj_reseni/<int:nadproblem_id>/', resitel_required(views.NahrajReseniView.as_view()), name='seminar_nahraj_reseni'), path('resitel/nahraj_reseni/<int:nadproblem_id>/', resitel_required(views.NahrajReseniView.as_view()), name='seminar_nahraj_reseni'),
path('resitel/odevzdana_reseni/', resitel_or_org_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'),

4
odevzdavatko/views.py

@ -367,8 +367,8 @@ class SeznamAktualnichReseniView(SeznamReseniView):
return qs return qs
class PosliReseniView(LoginRequiredMixin, FormView): class VlozReseniView(LoginRequiredMixin, FormView):
template_name = 'odevzdavatko/posli_reseni.html' template_name = 'odevzdavatko/vloz_reseni.html'
form_class = f.PosliReseniForm form_class = f.PosliReseniForm
def form_valid(self, form): def form_valid(self, form):

Loading…
Cancel
Save