Commit d5381d45 by Eric Fischer

Need to save model changes

parent f5e34095
......@@ -689,6 +689,7 @@ def reset_score(student_id, course_id, item_id, clear_state=False):
# sever the link between this student item and any submissions it may current have
for sub in student_item.submission_set.all():
sub.student_item = None
sub.save(update_fields=['student_item'])
except DatabaseError:
msg = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment