From c6d1bc8bf82d18fea2f67cf7043f607a1065560e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Koci=C3=A1n?= Date: Tue, 15 Nov 2016 22:01:43 +0100 Subject: [PATCH] =?UTF-8?q?tex-upload:=20zm=C4=9B=C5=88=20f=C3=A1zi=20?= =?UTF-8?q?=C4=8D=C3=ADsla=20na=20Nahr=C3=A1no?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seminar/views.py b/seminar/views.py index 5ceabcb8..2ce1d87e 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -723,6 +723,8 @@ def texUploadView(request): problem.body = meta["body"] problem.save() + cislo.faze = cislo.FAZE_NAHRANO + cislo.save() # Vrátíme id dané úlohy, aby se k ní dala případně připojit pohádka return JsonResponse({"db_id": problem.id})