|
|
@ -163,6 +163,8 @@ def hodnoceniReseniView(request, pk, *args, **kwargs): |
|
|
|
form_class = f.OhodnoceniReseniFormSet |
|
|
|
success_url = reverse('odevzdavatko_detail_reseni', kwargs={'pk': pk}) |
|
|
|
|
|
|
|
# FIXME: Použit initial i tady a nebastlit hodnocení tak nízkoúrovňově |
|
|
|
# Also: https://docs.djangoproject.com/en/2.2/topics/forms/modelforms/#django.forms.ModelForm |
|
|
|
formset = f.OhodnoceniReseniFormSet(request.POST) |
|
|
|
if formset.is_valid(): |
|
|
|
with transaction.atomic(): |
|
|
|