Skip to content
Snippets Groups Projects
Commit 7391f359 authored by Jason Zhu's avatar Jason Zhu Committed by Jason Zhu
Browse files

Support unicode ANALYTICS_DASHBOARD_NAME

I open this pull to support unicode ANALYTICS_DASHBOARD_NAME
parent f561e79a
No related merge requests found
......@@ -364,8 +364,8 @@ def _section_send_email(course, access):
def _get_dashboard_link(course_key):
""" Construct a URL to the external analytics dashboard """
analytics_dashboard_url = '{0}/courses/{1}'.format(settings.ANALYTICS_DASHBOARD_URL, unicode(course_key))
link = "<a href=\"{0}\" target=\"_blank\">{1}</a>".format(analytics_dashboard_url,
settings.ANALYTICS_DASHBOARD_NAME)
link = u"<a href=\"{0}\" target=\"_blank\">{1}</a>".format(analytics_dashboard_url,
settings.ANALYTICS_DASHBOARD_NAME)
return link
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment