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:
Julia Hansbrough
2013-11-01 20:23:43 +00:00
parent 81661385fb
commit c375666d88
4 changed files with 15 additions and 17 deletions

View File

@@ -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("/")