From 9d79c052feaa7a3a1793b1e6264b023f8c8c43a5 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Tue, 16 Feb 2021 23:37:59 +0100 Subject: [PATCH] =?UTF-8?q?P=C3=A1r=20n=C3=A1m=C4=9Bt=C5=AF=20na=20zlep?= =?UTF-8?q?=C5=A1en=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/odevzdavatko.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seminar/views/odevzdavatko.py b/seminar/views/odevzdavatko.py index a23ebdff..0c182695 100644 --- a/seminar/views/odevzdavatko.py +++ b/seminar/views/odevzdavatko.py @@ -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():