Merge pull request #1272 from edx/ned/remove-cache-warning-from-tests

Use a better metadata_cache_key
This commit is contained in:
Ned Batchelder
2013-10-09 08:18:46 -07:00

View File

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