Browse Source

Success URL pro zadání bodů

export_seznamu_prednasek
Pavel "LEdoian" Turinsky 4 years ago
parent
commit
64d3701d0f
  1. 4
      seminar/views/odevzdavatko.py

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

Loading…
Cancel
Save