Merge pull request #16031 from edx/douglashall/ENT-610

ENT-610 Convert CourseKey to string before passing to data sharing consent check function.
This commit is contained in:
Douglas Hall
2017-09-15 19:21:37 -04:00
committed by GitHub

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)