diff --git a/progress/views.py b/progress/views.py index 73bfc08..037e05f 100644 --- a/progress/views.py +++ b/progress/views.py @@ -165,10 +165,9 @@ class StudentUpdateProgress(APIView): ) 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 - if not comment is None: - pv.comment_tokens.append(comment) + pv.comment_tokens.append(comment) elif pv.checker == p.user: pv.status = ProgressLesson.STATUSES.done