From 37d29fcf58cc1ebe9b1c75f08c935ee6294f76a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 19 Jun 2023 20:46:12 +0200 Subject: [PATCH] Posli -> Vloz --- .../odevzdavatko/{posli_reseni.html => vloz_reseni.html} | 0 odevzdavatko/urls.py | 2 +- odevzdavatko/views.py | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename odevzdavatko/templates/odevzdavatko/{posli_reseni.html => vloz_reseni.html} (100%) diff --git a/odevzdavatko/templates/odevzdavatko/posli_reseni.html b/odevzdavatko/templates/odevzdavatko/vloz_reseni.html similarity index 100% rename from odevzdavatko/templates/odevzdavatko/posli_reseni.html rename to odevzdavatko/templates/odevzdavatko/vloz_reseni.html diff --git a/odevzdavatko/urls.py b/odevzdavatko/urls.py index b7de10b0..6b021f2e 100644 --- a/odevzdavatko/urls.py +++ b/odevzdavatko/urls.py @@ -19,7 +19,7 @@ from seminar.utils import org_required, resitel_required, viewMethodSwitch, \ from . import views 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.NahrajReseniView.as_view()), name='seminar_nahraj_reseni'), path('resitel/odevzdana_reseni/', resitel_or_org_required(views.PrehledOdevzdanychReseni.as_view()), name='seminar_resitel_odevzdana_reseni'), diff --git a/odevzdavatko/views.py b/odevzdavatko/views.py index 667f74aa..1e19921a 100644 --- a/odevzdavatko/views.py +++ b/odevzdavatko/views.py @@ -367,8 +367,8 @@ class SeznamAktualnichReseniView(SeznamReseniView): return qs -class PosliReseniView(LoginRequiredMixin, FormView): - template_name = 'odevzdavatko/posli_reseni.html' +class VlozReseniView(LoginRequiredMixin, FormView): + template_name = 'odevzdavatko/vloz_reseni.html' form_class = f.PosliReseniForm def form_valid(self, form):