Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
4cd29189
Commit
4cd29189
authored
Jan 30, 2018
by
Asad Azam
Committed by
AsadAzam
Feb 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed incomplete course team list on edit course
parent
6d608269
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
course_discovery/apps/publisher/api/paginations.py
+5
-0
course_discovery/apps/publisher/api/views.py
+2
-0
No files found.
course_discovery/apps/publisher/api/paginations.py
0 → 100644
View file @
4cd29189
from
rest_framework.pagination
import
PageNumberPagination
class
LargeResultsSetPagination
(
PageNumberPagination
):
page_size
=
100
course_discovery/apps/publisher/api/views.py
View file @
4cd29189
...
...
@@ -11,6 +11,7 @@ from rest_framework.response import Response
from
rest_framework.views
import
APIView
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
,
PublisherUserPermission
)
from
course_discovery.apps.publisher.api.serializers
import
(
CourseRevisionSerializer
,
CourseRunSerializer
,
...
...
@@ -37,6 +38,7 @@ class OrganizationGroupUserView(ListAPIView):
""" List view for Users filtered by group """
serializer_class
=
GroupUserSerializer
permission_classes
=
(
IsAuthenticated
,)
pagination_class
=
LargeResultsSetPagination
def
get_queryset
(
self
):
org_extension
=
get_object_or_404
(
OrganizationExtension
,
organization
=
self
.
kwargs
.
get
(
'pk'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment