1 from rest_framework.pagination import LimitOffsetPagination, PageLink
2 from rest_framework.response import Response
5 class WLLimitOffsetPagination(LimitOffsetPagination):
6 def get_results(self, data):
9 def get_paginated_response(self, data):
12 "totalItems": self.count,
14 "previous": self.get_previous_link(),
15 "next": self.get_next_link(),