From 2161e511c33d69dc856337151f8d5c4d62a5d229 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 19 Feb 2018 16:53:30 +0300 Subject: [PATCH] migrate update --- progress/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progress/views.py b/progress/views.py index 3c0c60b..446d276 100644 --- a/progress/views.py +++ b/progress/views.py @@ -187,7 +187,7 @@ class StudentUpdateProgress(APIView): res = {"current": ProgressLessonSerializer(pv).data} if pv.status == ProgressLesson.STATUSES.done: # TODO: Ассинхроннаязадача для celery - res['next'] = add_next_lesson(p) + res['next'] = ProgressLessonSerializer(add_next_lesson(p)).data return Response(res, status=200)