get _cache_children to queyr both non-draft and draft versions of the children, then overwrite all non-drafts with the draft version, if available. This conforms with the semantics of the DraftMongoModuleStore

This commit is contained in:
Chris Dodge
2013-03-28 09:28:19 -04:00
parent 6c67ed1f57
commit 3cdd973af4
2 changed files with 29 additions and 7 deletions

View File

@@ -138,7 +138,6 @@ def compute_unit_state(unit, subsection=None):
'private' content is editabled and not visible in the LMS
"""
logging.debug('****** is_draft = {0}'.format(getattr(unit, 'is_draft', False)))
if getattr(unit, 'is_draft', False):
try:
modulestore('direct').get_item(unit.location)