diff options
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 3a0b4e7..f458ad8 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -2774,8 +2774,7 @@ def _update_unit_status(course_id, user, unit): user=user, course_id=course_id, ) # make next available unit as current unit - course_status.current_unit = unit - course_status.save() + course_status.set_current_unit(unit) def _update_course_percent(course, user): |