Commit 5b10e016 by Diana Huang

Make sure the correct mode is chosen during upgrade

LMS-1127
parent d68b2ced
...@@ -43,7 +43,7 @@ class ChooseModeView(View): ...@@ -43,7 +43,7 @@ class ChooseModeView(View):
return redirect(reverse('dashboard')) return redirect(reverse('dashboard'))
# registered users who are not trying to upgrade do not need to re-register # registered users who are not trying to upgrade do not need to re-register
if enrollment_mode != None and upgrade == False: if enrollment_mode is not None and upgrade is False:
return redirect(reverse('dashboard')) return redirect(reverse('dashboard'))
modes = CourseMode.modes_for_course_dict(course_id) modes = CourseMode.modes_for_course_dict(course_id)
...@@ -132,6 +132,7 @@ class ChooseModeView(View): ...@@ -132,6 +132,7 @@ class ChooseModeView(View):
""" """
choices = { choices = {
"Select Audit": "audit", "Select Audit": "audit",
"Select Certificate": "verified" "Select Certificate": "verified",
"Upgrade Your Registration": "verified"
} }
return choices.get(user_choice) return choices.get(user_choice)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment