Merge pull request #18387 from edx/clee/courseapipagelimit

Set max page size for get courses
This commit is contained in:
Christopher Lee
2018-06-19 13:57:49 -04:00
committed by GitHub

View File

@@ -234,6 +234,7 @@ class CourseListView(DeveloperErrorViewMixin, ListAPIView):
pagination_class = NamespacedPageNumberPagination
serializer_class = CourseSerializer
throttle_classes = CourseListUserThrottle,
max_page_size = 100
# Return all the results, 10K is the maximum allowed value for ElasticSearch.
# We should use 0 after upgrading to 1.1+: