Make load_from_json on descriptors pass the right sort of arguments

This commit is contained in:
Calen Pennington
2012-12-17 13:19:18 -05:00
parent 8c42e0f52e
commit 5cb31c0e32

View File

@@ -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