From 2113f5bb21df92df4f685552fe0009a676c2ca33 Mon Sep 17 00:00:00 2001 From: Mikhail Bortnikov Date: Fri, 23 Jun 2017 12:53:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=B0=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=BC=D0=B0=D1=88=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- courses/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/courses/api.py b/courses/api.py index 3d1d33d..86c16b7 100755 --- a/courses/api.py +++ b/courses/api.py @@ -740,6 +740,9 @@ def sent_homework_up_teacher(request, context): context['code'] = '1' context['data'] = {'try': ht.get_head_face(), 'comment': comment.get_face()} ht.saw_this() + + homework.success = True + homework.save() return context