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

Make load_from_json on descriptors pass the right sort of arguments

parent 8c42e0f5
No related branches found
No related tags found
No related merge requests found
......@@ -456,7 +456,7 @@ class XModuleDescriptor(Plugin, HTMLSnippet, ResourceTemplates):
system: A DescriptorSystem for interacting with external resources
"""
return cls(system=system, **json_data)
return cls(system=system, location=json_data['location'], model_data=json_data)
# ================================= XML PARSING ============================
@staticmethod
......
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