From 90e4de5c02f290874e1e101efab168596d781323 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Wed, 24 Dec 2014 15:02:10 -0500 Subject: [PATCH] Pull HTML out of i18n'ed string --- lms/djangoapps/shoppingcart/models.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/shoppingcart/models.py b/lms/djangoapps/shoppingcart/models.py index d959294774..d52abbccf6 100644 --- a/lms/djangoapps/shoppingcart/models.py +++ b/lms/djangoapps/shoppingcart/models.py @@ -1019,8 +1019,13 @@ class PaidCourseRegistration(OrderItem): Generates instructions when the user has purchased a PaidCourseRegistration. Basically tells the user to visit the dashboard to see their new classes """ - notification = (_('Please visit your dashboard to see your new course.') - .format(dashboard_link=reverse('dashboard'))) + notification = _( + "Please visit your {link_start}dashboard{link_end} " + "to see your new course." + ).format( + link_start=''.format(url=reverse('dashboard')), + link_end='', + ) return self.pk_with_subclass, set([notification])