Skip to content

Commit

Permalink
Fix deferral error (#2544)
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav authored Feb 20, 2025
1 parent 6474498 commit 232a155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion courses/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _enroll_learner_into_associated_programs():
enrollment.edx_enrolled = edx_request_success
if change_status is not None:
enrollment.change_status = change_status
enrollment.save_and_log()
enrollment.save_and_log(None)
# 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 232a155

Please sign in to comment.