Skip to content
Snippets Groups Projects
Commit 07487a8d authored by Calen Pennington's avatar Calen Pennington
Browse files

Use descriptor when setting up replace_urls, as it's been created at that point

parent e773b8e7
No related branches found
No related tags found
No related merge requests found
......@@ -248,8 +248,8 @@ def _get_module(user, request, descriptor, student_module_cache, course_id,
# by the replace_static_urls code below
replace_urls=partial(
replace_urls,
staticfiles_prefix='/static/' + module.metadata.get('data_dir', ''),
course_namespace=module.location._replace(category=None, name=None),
staticfiles_prefix='/static/' + descriptor.metadata.get('data_dir', ''),
course_namespace=descriptor.location._replace(category=None, name=None),
),
node_path=settings.NODE_PATH,
anonymous_student_id=unique_id_for_user(user),
......
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