From fe5cf93ed8a0198601a87e9294c1184b69bc345b Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Fri, 28 Feb 2020 21:42:06 +0100 Subject: [PATCH] Submitovatko: bugfixy --- seminar/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seminar/views.py b/seminar/views.py index 0136dfb2..b1bacc48 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -1178,8 +1178,9 @@ class SubmitSolutionView(LoginRequiredMixin, CreateView): with transaction.atomic(): self.object = form.save() self.object.resitele.add(Resitel.objects.get(osoba__user = self.request.user)) - self.object.cas_doruceni = datetime.now() + self.object.cas_doruceni = timezone.now() self.object.forma = s.Reseni.FORMA_UPLOAD + self.object.save() if prilohy.is_valid(): prilohy.instance = self.object prilohy.save()