Added new copy, small CR fixes
* Changed text for "Are you sure you want to refund"... * Addressed a CR comment adding clarity to student view code * Converted UTC to pytz.utc
This commit is contained in:
@@ -470,9 +470,7 @@ def change_enrollment(request):
|
||||
)
|
||||
|
||||
elif action == "unenroll":
|
||||
try:
|
||||
CourseEnrollment.enrollment_mode_for_user(user, course_id)
|
||||
except CourseEnrollment.DoesNotExist:
|
||||
if not CourseEnrollment.is_enrolled(user, course_id):
|
||||
return HttpResponseBadRequest(_("You are not enrolled in this course"))
|
||||
CourseEnrollment.unenroll(user, course_id)
|
||||
org, course_num, run = course_id.split("/")
|
||||
|
||||
Reference in New Issue
Block a user