|
|
|
@ -165,10 +165,9 @@ class StudentUpdateProgress(APIView): |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if not pv.status == ProgressLesson.STATUSES.wait: |
|
|
|
if not pv.status == ProgressLesson.STATUSES.wait: |
|
|
|
if pv.checker == p.teacher: |
|
|
|
if pv.checker == p.teacher and not comment is None: |
|
|
|
pv.status = ProgressLesson.STATUSES.wait |
|
|
|
pv.status = ProgressLesson.STATUSES.wait |
|
|
|
if not comment is None: |
|
|
|
pv.comment_tokens.append(comment) |
|
|
|
pv.comment_tokens.append(comment) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif pv.checker == p.user: |
|
|
|
elif pv.checker == p.user: |
|
|
|
pv.status = ProgressLesson.STATUSES.done |
|
|
|
pv.status = ProgressLesson.STATUSES.done |
|
|
|
|