This data can be used by external frontends or other apps. The list of course enrollments can optionally be filtered by course id or usernames.
12 lines
264 B
Python
12 lines
264 B
Python
"""
|
|
Paginators for the course enrollment related views.
|
|
"""
|
|
from rest_framework.pagination import CursorPagination
|
|
|
|
|
|
class CourseEnrollmentsApiListPagination(CursorPagination):
|
|
"""
|
|
Paginator for the Course enrollments list API.
|
|
"""
|
|
page_size = 100
|