Merge pull request #1272 from edx/ned/remove-cache-warning-from-tests
Use a better metadata_cache_key
This commit is contained in:
@@ -246,7 +246,9 @@ def location_to_query(location, wildcard=True):
|
||||
return query
|
||||
|
||||
|
||||
metadata_cache_key = attrgetter('org', 'course')
|
||||
def metadata_cache_key(location):
|
||||
"""Turn a `Location` into a useful cache key."""
|
||||
return u"{0.org}/{0.course}".format(location)
|
||||
|
||||
|
||||
class MongoModuleStore(ModuleStoreBase):
|
||||
|
||||
Reference in New Issue
Block a user