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 f63c0ec60814..ab01a4104d05 100644 --- a/cms/djangoapps/contentstore/rest_api/v1/serializers/vertical_block.py +++ b/cms/djangoapps/contentstore/rest_api/v1/serializers/vertical_block.py @@ -132,3 +132,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 fa3be03057a2..eb042a481fd4 100644 --- a/cms/djangoapps/contentstore/rest_api/v1/views/vertical_block.py +++ b/cms/djangoapps/contentstore/rest_api/v1/views/vertical_block.py @@ -226,7 +226,8 @@ def get(self, request: Request, usage_key_string: str): } }, ], - "is_published": false + "is_published": false, + "can_paste_component": true, } ``` """ @@ -250,6 +251,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)