@ -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):
...