Skip to content

Commit

Permalink
Set change status on deferal request (#2457)
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav authored Nov 20, 2024
1 parent 4ebef04 commit 7748e12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions courses/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def _enroll_learner_into_associated_programs():
if not created:
enrollment_mode_changed = mode != enrollment.enrollment_mode
enrollment.edx_enrolled = edx_request_success
if change_status is not None:
enrollment.change_status = change_status
enrollment.save_and_log()
# Case (Upgrade): When user was enrolled in free mode and now enrolls in paid mode (e.g. Verified)
# So, User has an active enrollment and the only changing thing is going to be enrollment mode
if enrollment.active and enrollment_mode_changed:
Expand Down

0 comments on commit 7748e12

Please sign in to comment.