class BasePagination

from rest_framework.pagination import BasePagination
Documentation Source code

Ancestors (MRO)

  1. BasePagination

Attributes

  Defined in
display_page_controls = False BasePagination
Expand Collapse

Methods

def get_paginated_response(self, data): BasePagination

    def get_paginated_response(self, data):  # pragma: no cover
        raise NotImplementedError('get_paginated_response() must be implemented.')

def get_results(self, data): BasePagination

    def get_results(self, data):
        return data['results']

def paginate_queryset(self, queryset, request, view=None): BasePagination

    def paginate_queryset(self, queryset, request, view=None):  # pragma: no cover
        raise NotImplementedError('paginate_queryset() must be implemented.')

def to_html(self): BasePagination

    def to_html(self):  # pragma: no cover
        raise NotImplementedError('to_html() must be implemented to display page controls.')