Calculate has_changes only Section/Subsection only on Outline page

This commit is contained in:
Tim Babych
2014-09-10 16:20:57 +03:00
parent d21384fe12
commit 8b37dd7f95
3 changed files with 5 additions and 8 deletions

View File

@@ -590,7 +590,6 @@ class DraftModuleStore(MongoModuleStore):
_internal([root_usage.to_deprecated_son() for root_usage in root_usages])
self.collection.remove({'_id': {'$in': to_be_deleted}}, safe=self.collection.safe)
@MongoModuleStore.memoize_request_cache
def has_changes(self, xblock):
"""
Check if the subtree rooted at xblock has any drafts and thus may possibly have changes