From 3c79e81c9d12148decd097bec6d8b9298ae101d2 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Fri, 23 Aug 2013 11:37:34 -0400 Subject: [PATCH] default to a min price if we loose track of how much they wanted to pay --- lms/djangoapps/verify_student/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/verify_student/views.py b/lms/djangoapps/verify_student/views.py index 18461bc180..78c653bea7 100644 --- a/lms/djangoapps/verify_student/views.py +++ b/lms/djangoapps/verify_student/views.py @@ -61,7 +61,8 @@ def create_order(request): donation_for_course = request.session.get("donation_for_course", {}) # FIXME: When this isn't available we do...? - amount = donation_for_course.get(course_id) + verified_mode = CourseMode.modes_for_course_dict(course_id)["verified"] + amount = donation_for_course.get(course_id, verified_mode.min_price) # I know, we should check this is valid. All kinds of stuff missing here # enrollment = CourseEnrollment.create_enrollment(request.user, course_id)