from rest_framework.pagination import PageNumberPagination


class PaginateContent(PageNumberPagination):
    """
        Custom pagination class
    """
    page_size = 12
    page_size_query_param = 'page_size'

from rest_framework.pagination import PageNumberPagination


class PaginateContent(PageNumberPagination):
    """
        Custom pagination class
    """
    page_size = 12
    page_size_query_param = 'page_size'

Custom pagination class