Merge pull request #16674 from open-craft/tomaszgy/completion_in_blocks_api

Add block completion value as optional field in course_blocks.api.
This commit is contained in:
Nimisha Asthagiri
2017-12-13 10:38:36 -05:00
committed by GitHub
7 changed files with 226 additions and 4 deletions

View File

@@ -730,7 +730,7 @@ class BlockStructureBlockData(BlockStructure):
Adds the given transformer to the block structure by recording
its current version number.
"""
if transformer.READ_VERSION == 0 or transformer.WRITE_VERSION == 0:
if transformer.WRITE_VERSION == 0:
raise TransformerException('Version attributes are not set on transformer {0}.', transformer.name())
self.set_transformer_data(transformer, TRANSFORMER_VERSION_KEY, transformer.WRITE_VERSION)