From 2f675be20d319574dce257e07dadc086e5248182 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 9 Oct 2012 10:56:42 -0400 Subject: [PATCH] Coerce location to Location when generating LMS link --- cms/djangoapps/contentstore/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index 76dcb89005..bc33c7d1f6 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -36,6 +36,7 @@ def get_course_location_for_item(location): def get_lms_link_for_item(location): + location = Location(location) if settings.LMS_BASE is not None: lms_link = "{lms_base}/courses/{course_id}/jump_to/{location}".format( lms_base=settings.LMS_BASE,