diff --git a/cms/djangoapps/contentstore/rest_api/v1/serializers/videos.py b/cms/djangoapps/contentstore/rest_api/v1/serializers/videos.py index 590b34fff078..bd85fdb77220 100644 --- a/cms/djangoapps/contentstore/rest_api/v1/serializers/videos.py +++ b/cms/djangoapps/contentstore/rest_api/v1/serializers/videos.py @@ -56,9 +56,6 @@ class VideoModelSerializer(serializers.Serializer): transcripts = serializers.ListField( child=serializers.CharField() ) - usage_locations = serializers.ListField( - child=serializers.DictField() - ) class VideoActiveTranscriptPreferencesSerializer(serializers.Serializer): @@ -99,7 +96,6 @@ class CourseVideosSerializer(serializers.Serializer): child=serializers.CharField() ) ) - # transcript_available_languages = serializers.BooleanField(required=False, allow_null=True) video_transcript_settings = VideoTranscriptSettingsSerializer() pagination_context = serializers.DictField( child=serializers.CharField(), diff --git a/cms/djangoapps/contentstore/video_storage_handlers.py b/cms/djangoapps/contentstore/video_storage_handlers.py index bd5c54856442..ce3fe43461bb 100644 --- a/cms/djangoapps/contentstore/video_storage_handlers.py +++ b/cms/djangoapps/contentstore/video_storage_handlers.py @@ -685,7 +685,6 @@ def _get_values(video, course): Get data for predefined video attributes. """ values = {} - values["usage_locations"] = get_video_usage_path(course.id, video["edx_video_id"])['usage_locations'] for attr in attrs: if attr == 'courses': current_course = [c for c in video['courses'] if course_id in c] diff --git a/cms/djangoapps/contentstore/views/tests/test_videos.py b/cms/djangoapps/contentstore/views/tests/test_videos.py index 1eadd49c50a8..2e6e6aef254c 100644 --- a/cms/djangoapps/contentstore/views/tests/test_videos.py +++ b/cms/djangoapps/contentstore/views/tests/test_videos.py @@ -374,7 +374,6 @@ def test_get_json(self): 'transcription_status', 'transcript_urls', 'error_description', - 'usage_locations' } ) dateutil.parser.parse(response_video['created']) @@ -391,7 +390,7 @@ def test_get_json(self): 'edx_video_id', 'client_video_id', 'created', 'duration', 'status', 'course_video_image_url', 'file_size', 'download_link', 'transcripts', 'transcription_status', 'transcript_urls', - 'error_description', 'usage_locations' + 'error_description' ], [ { @@ -409,7 +408,7 @@ def test_get_json(self): 'edx_video_id', 'client_video_id', 'created', 'duration', 'status', 'course_video_image_url', 'file_size', 'download_link', 'transcripts', 'transcription_status', 'transcript_urls', - 'error_description', 'usage_locations' + 'error_description' ], [ {