ENT-610 Convert CourseKey to string before passing to data sharing consent check function.

This commit is contained in:
Douglas Hall
2017-09-15 15:58:39 -04:00
parent 53d52964ba
commit cafef98aa4

View File

@@ -79,7 +79,7 @@ class WikiAccessMiddleware(object):
return redirect('about_course', course_id.to_deprecated_string())
# If we need enterprise data sharing consent for this course, then redirect to the form.
consent_url = get_enterprise_consent_url(request, course_id)
consent_url = get_enterprise_consent_url(request, unicode(course_id))
if consent_url:
return redirect(consent_url)