Commit 5cb31c0e by Calen Pennington

Make load_from_json on descriptors pass the right sort of arguments

parent 8c42e0f5
...@@ -456,7 +456,7 @@ class XModuleDescriptor(Plugin, HTMLSnippet, ResourceTemplates): ...@@ -456,7 +456,7 @@ class XModuleDescriptor(Plugin, HTMLSnippet, ResourceTemplates):
system: A DescriptorSystem for interacting with external resources 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 ============================ # ================================= XML PARSING ============================
@staticmethod @staticmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment