migrate update

feature/fix_generate_pass
Andrey 8 years ago
parent 1f2416e0b2
commit 936e097706
  1. 3
      progress/views.py

@ -165,9 +165,8 @@ 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:

Loading…
Cancel
Save