From 404d6da0938940eb58b648100866a8ffb3055669 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 14 Feb 2018 17:57:44 +0300 Subject: [PATCH] =?UTF-8?q?update=20api=20=D0=BF=D1=80=D0=BE=D1=85=D0=BE?= =?UTF-8?q?=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- progress/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progress/views.py b/progress/views.py index f27f131..fbc5f56 100644 --- a/progress/views.py +++ b/progress/views.py @@ -144,7 +144,7 @@ class UpdateProgress(APIView): pv.save() res = {"current": ProgressLessonSerializer(pv).data} - if pv.status == ProgressLesson.STATUSES.done: + if pv.status == ProgressLesson.STATUSES.done and not is_student: # TODO: Ассинхроннаязадача для celery res['next'] = add_next_lesson(p)