Commit 01c5cd5d by Bertrand Marron

Fix unicode issue in shopping cart

Fails when course name contains non-ascii characters.
parent b4478081
...@@ -367,7 +367,7 @@ class PaidCourseRegistration(OrderItem): ...@@ -367,7 +367,7 @@ class PaidCourseRegistration(OrderItem):
item.mode = course_mode.slug item.mode = course_mode.slug
item.qty = 1 item.qty = 1
item.unit_cost = cost item.unit_cost = cost
item.line_desc = 'Registration for Course: {0}'.format(course.display_name_with_default) item.line_desc = u'Registration for Course: {0}'.format(course.display_name_with_default)
item.currency = currency item.currency = currency
order.currency = currency order.currency = currency
item.report_comments = item.csv_report_comments item.report_comments = item.csv_report_comments
......
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