-Remove unicode and use six.text_type
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
## mako
|
||||
|
||||
<%!
|
||||
import six
|
||||
from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_string
|
||||
%>
|
||||
|
||||
@@ -8,7 +9,7 @@ from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_str
|
||||
require(['course_bookmarks/js/course_bookmarks_factory'], function (CourseBookmarksFactory) {
|
||||
CourseBookmarksFactory({
|
||||
$el: $(".course-bookmarks"),
|
||||
courseId: '${unicode(course.id) | n, js_escaped_string}',
|
||||
courseId: '${six.text_type(course.id) | n, js_escaped_string}',
|
||||
bookmarksApiUrl: '${bookmarks_api_url | n, js_escaped_string}',
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user