Success URL pro zadání bodů

This commit is contained in:
Pavel "LEdoian" Turinsky 2021-02-16 19:57:08 +01:00
parent b91e639089
commit 64d3701d0f

View file

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