Merge pull request #5152 from edx/tim/less-has-changes

Calculate has_changes only Section/Subsection only on Outline page
This commit is contained in:
Tim Babych
2014-09-11 16:11:42 +03:00
3 changed files with 5 additions and 8 deletions

View File

@@ -597,7 +597,6 @@ class DraftModuleStore(MongoModuleStore):
bulk_record.dirty = True
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