Commit c74be27a by chrisndodge

Merge pull request #1167 from MITx/fix/cdodge/course-id-on-mongo-system

fix crash of custom tags when running against Mongo datastores. Mongo's ...
parents 39d292a0 d18f4222
...@@ -51,6 +51,9 @@ class CachingDescriptorSystem(MakoDescriptorSystem): ...@@ -51,6 +51,9 @@ class CachingDescriptorSystem(MakoDescriptorSystem):
self.modulestore = modulestore self.modulestore = modulestore
self.module_data = module_data self.module_data = module_data
self.default_class = default_class self.default_class = default_class
# cdodge: other Systems have a course_id attribute defined. To keep things consistent, let's
# define an attribute here as well, even though it's None
self.course_id = None
def load_item(self, location): def load_item(self, location):
location = Location(location) location = Location(location)
......
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