fix: remove unused fields 'prerequisites', 'ocw_links'

This commit is contained in:
Serhii Nanai
2025-09-03 12:38:08 +03:00
parent 577ef63a78
commit ed69cb554b
2 changed files with 0 additions and 19 deletions

View File

@@ -159,16 +159,6 @@ class CourseInfoSerializer(serializers.Serializer): # pylint: disable=abstract-
allow_null=True,
default=None,
)
ocw_links = serializers.ListField(
child=serializers.CharField(),
allow_empty=True,
default=list,
)
prerequisites = serializers.ListField(
child=serializers.CharField(),
allow_empty=True,
default=list,
)
def __init__(self, *args, **kwargs):
"""

View File

@@ -519,13 +519,6 @@ class CoursewareMeta:
"""
return get_course_about_section(self.request, self.course, "overview")
@property
def ocw_links(self):
"""
Returns a list of OpenCourseWare links for the course.
"""
return get_course_about_section(self.request, self.course, "ocw_links")
@method_decorator(transaction.non_atomic_requests, name='dispatch')
class CoursewareInformation(RetrieveAPIView):
@@ -654,8 +647,6 @@ class CoursewareInformation(RetrieveAPIView):
* visible: Boolean indicating whether notes are visible in the course
* marketing_url: The marketing URL for the course
* overview: The overview HTML content for the course
* ocw_links: A list of OpenCourseWare links for the course
* prerequisites: A list of prerequisite courses for the course
* license: The license for the course
**Parameters:**