From 64d3701d0f42199a3fae1889cab5ece1fcac8db5 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Tue, 16 Feb 2021 19:57:08 +0100 Subject: [PATCH] =?UTF-8?q?Success=20URL=20pro=20zad=C3=A1n=C3=AD=20bod?= =?UTF-8?q?=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/odevzdavatko.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/seminar/views/odevzdavatko.py b/seminar/views/odevzdavatko.py index 3db8df7d..5c80efe5 100644 --- a/seminar/views/odevzdavatko.py +++ b/seminar/views/odevzdavatko.py @@ -158,6 +158,10 @@ class HodnoceniReseniView(SingleObjectMixin, FormView): template_name = 'seminar/odevzdavatko/detail.html' form_class = f.OhodnoceniReseniFormSet + def get_success_url(self): + # Funkce to je jen proto, aby se dalo použít self. + return reverse('odevzdavatko_detail_reseni', kwargs={'pk': self.kwargs['pk']}) + def form_vaild(self, form): ...