|
|
|
|
@ -122,7 +122,8 @@ class TeacherUpdateProgress(APIView): |
|
|
|
|
else: |
|
|
|
|
return Response("Ошибка прав доступа", status=403) |
|
|
|
|
|
|
|
|
|
pv.comment_tokens.append(comment) |
|
|
|
|
if not comment is None: |
|
|
|
|
pv.comment_tokens.append(comment) |
|
|
|
|
|
|
|
|
|
except ProgressLesson.DoesNotExist: |
|
|
|
|
return Response('Урок не проходится этим пользователем', status=403) |
|
|
|
|
@ -167,7 +168,8 @@ class StudentUpdateProgress(APIView): |
|
|
|
|
|
|
|
|
|
if pv.checker == p.teacher: |
|
|
|
|
pv.status = ProgressLesson.STATUSES.wait |
|
|
|
|
pv.comment_tokens.append(comment) |
|
|
|
|
if not comment is None: |
|
|
|
|
pv.comment_tokens.append(comment) |
|
|
|
|
|
|
|
|
|
elif pv.checker == p.user: |
|
|
|
|
pv.status = ProgressLesson.STATUSES.done |
|
|
|
|
|