Skip to content

Commit

Permalink
fix: _auto_enroll is private
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Noyan Aziz authored and aht007 committed Oct 1, 2024
1 parent 1a99f63 commit 3d12640
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lms/djangoapps/commerce/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def refund_seat(course_enrollment, change_mode=False):
user=enrollee,
)
if change_mode:
_auto_enroll(course_enrollment)
auto_enroll(course_enrollment)
else:
log.info('No refund opened for user [%s], course [%s]', enrollee.id, course_key_str)

Expand Down Expand Up @@ -355,7 +355,7 @@ def _refund_in_commerce_coordinator(course_enrollment, change_mode):
log.info('Refund successfully sent to Commerce Coordinator for user [%s], course [%s].',
course_enrollment.user_id, course_key_str)
if change_mode:
_auto_enroll(course_enrollment)
auto_enroll(course_enrollment)
return True
else:
# Refund was not meant to be sent to Commerce Coordinator
Expand All @@ -364,7 +364,7 @@ def _refund_in_commerce_coordinator(course_enrollment, change_mode):
return False


def _auto_enroll(course_enrollment):
def auto_enroll(course_enrollment):
"""
Helper method to update an enrollment to a default course mode.
Expand Down

0 comments on commit 3d12640

Please sign in to comment.