Commit 4cd29189 by Asad Azam Committed by AsadAzam

Fixed incomplete course team list on edit course

parent 6d608269
from rest_framework.pagination import PageNumberPagination
class LargeResultsSetPagination(PageNumberPagination):
page_size = 100
...@@ -11,6 +11,7 @@ from rest_framework.response import Response ...@@ -11,6 +11,7 @@ from rest_framework.response import Response
from rest_framework.views import APIView from rest_framework.views import APIView
from course_discovery.apps.core.models import User from course_discovery.apps.core.models import User
from course_discovery.apps.publisher.api.paginations import LargeResultsSetPagination
from course_discovery.apps.publisher.api.permissions import (CanViewAssociatedCourse, InternalUserPermission, from course_discovery.apps.publisher.api.permissions import (CanViewAssociatedCourse, InternalUserPermission,
PublisherUserPermission) PublisherUserPermission)
from course_discovery.apps.publisher.api.serializers import (CourseRevisionSerializer, CourseRunSerializer, from course_discovery.apps.publisher.api.serializers import (CourseRevisionSerializer, CourseRunSerializer,
...@@ -37,6 +38,7 @@ class OrganizationGroupUserView(ListAPIView): ...@@ -37,6 +38,7 @@ class OrganizationGroupUserView(ListAPIView):
""" List view for Users filtered by group """ """ List view for Users filtered by group """
serializer_class = GroupUserSerializer serializer_class = GroupUserSerializer
permission_classes = (IsAuthenticated,) permission_classes = (IsAuthenticated,)
pagination_class = LargeResultsSetPagination
def get_queryset(self): def get_queryset(self):
org_extension = get_object_or_404(OrganizationExtension, organization=self.kwargs.get('pk')) org_extension = get_object_or_404(OrganizationExtension, organization=self.kwargs.get('pk'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment