Skip to content

Commit cb9ea4f

Browse files
committed
docs: document can_stand_alone flag
1 parent b6181ed commit cb9ea4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openedx/core/djangoapps/content_libraries/api/libraries.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)