Commit 984eb0a4 by Calen Pennington

Use the more abstract api for parsing UsageKeys in mongo/base.py

parent 1e0163a2
...@@ -324,7 +324,7 @@ class CachingDescriptorSystem(MakoDescriptorSystem, EditInfoRuntimeMixin): ...@@ -324,7 +324,7 @@ class CachingDescriptorSystem(MakoDescriptorSystem, EditInfoRuntimeMixin):
""" """
Convert a single serialized UsageKey string in a ReferenceField into a UsageKey. Convert a single serialized UsageKey string in a ReferenceField into a UsageKey.
""" """
key = Location.from_string(ref_string) key = UsageKey.from_string(ref_string)
return key.replace(run=self.modulestore.fill_in_run(key.course_key).run) return key.replace(run=self.modulestore.fill_in_run(key.course_key).run)
def __setattr__(self, name, value): def __setattr__(self, name, value):
......
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