File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
openedx/core/djangoapps/content_libraries/api Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -969,6 +969,8 @@ def create_library_block(
969969):
970970 """
971971 Create a new XBlock in this library of the specified type (e.g. "html").
972+
973+ Set can_stand_alone = False when a component is created under a container, like unit.
972974 """
973975 # It's in the serializer as ``definition_id``, but for our purposes, it's
974976 # the block_id. See the comments in ``LibraryXBlockCreationSerializer`` for
@@ -1153,6 +1155,8 @@ def _create_component_for_block(
11531155 will be set as the current draft. This function does not publish the
11541156 Component.
11551157
1158+ Set can_stand_alone = False when a component is created under a container, like unit.
1159+
11561160 TODO: We should probably shift this to openedx.core.djangoapps.xblock.api
11571161 (along with its caller) since it gives runtime storage specifics. The
11581162 Library-specific logic stays in this module, so "create a block for my lib"
You can’t perform that action at this time.
0 commit comments