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