From 59915d24d370b90c9aa5852e1ebb8a14a715012d Mon Sep 17 00:00:00 2001 From: Alex Dusenbery Date: Fri, 7 Dec 2018 12:05:30 -0500 Subject: [PATCH] Swagger API Docs fix: Add the base DRF Serializer as the serializer class for course_groups views that don't specify one. --- openedx/core/djangoapps/course_groups/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/course_groups/views.py b/openedx/core/djangoapps/course_groups/views.py index 6930b7143f..a28eb94b2c 100644 --- a/openedx/core/djangoapps/course_groups/views.py +++ b/openedx/core/djangoapps/course_groups/views.py @@ -21,6 +21,7 @@ from opaque_keys.edx.keys import CourseKey from rest_framework import status, permissions from rest_framework.generics import GenericAPIView from rest_framework.response import Response +from rest_framework.serializers import Serializer from six import text_type from courseware.courses import get_course, get_course_with_access @@ -430,6 +431,7 @@ class APIPermissions(GenericAPIView): SessionAuthenticationAllowInactiveUser, ) permission_classes = (permissions.IsAuthenticated, permissions.IsAdminUser) + serializer_class = Serializer class CohortSettings(DeveloperErrorViewMixin, APIPermissions): @@ -498,7 +500,6 @@ class CohortHandler(DeveloperErrorViewMixin, APIPermissions): * user_partition_id: The integer identified of the UserPartition. * group_id: The integer identified of the specific group in the partition. """ - def get(self, request, course_key_string, cohort_id=None): """ Endpoint to get either one or all cohorts.