diff --git a/cms/djangoapps/contentstore/rest_api/v1/serializers/vertical_block.py b/cms/djangoapps/contentstore/rest_api/v1/serializers/vertical_block.py index 2dd662d3cff6..b8368b4dfedd 100644 --- a/cms/djangoapps/contentstore/rest_api/v1/serializers/vertical_block.py +++ b/cms/djangoapps/contentstore/rest_api/v1/serializers/vertical_block.py @@ -139,3 +139,4 @@ class VerticalContainerSerializer(serializers.Serializer): children = ChildVerticalContainerSerializer(many=True) is_published = serializers.BooleanField() + can_paste_component = serializers.BooleanField() diff --git a/cms/djangoapps/contentstore/rest_api/v1/views/vertical_block.py b/cms/djangoapps/contentstore/rest_api/v1/views/vertical_block.py index f41ddc73f1eb..b5cab4f93ed6 100644 --- a/cms/djangoapps/contentstore/rest_api/v1/views/vertical_block.py +++ b/cms/djangoapps/contentstore/rest_api/v1/views/vertical_block.py @@ -230,7 +230,8 @@ def get(self, request: Request, usage_key_string: str): "render_error": "Unterminated control keyword: 'if' in file '../problem.html'", }, ], - "is_published": false + "is_published": false, + "can_paste_component": true, } ``` """ @@ -259,6 +260,10 @@ def get(self, request: Request, usage_key_string: str): }) is_published = not modulestore().has_changes(current_xblock) - container_data = {"children": children, "is_published": is_published} + container_data = { + "children": children, + "is_published": is_published, + "can_paste_component": True, + } serializer = VerticalContainerSerializer(container_data) return Response(serializer.data)