Commit 3c79e81c by David Ormsbee

default to a min price if we loose track of how much they wanted to pay

parent cbb259eb
......@@ -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)
......
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