'Annotate the response with pagination information.'

def get_paginated_response(self, data):

    return Response({'next': self.get_next_link(), 'previous': self.get_previous_link(), 'count': self.page.paginator.count, 'num_pages': self.page.paginator.num_pages, 'current_page': self.page.number, 'start': ((self.page.number - 1) * self.get_page_size(self.request)), 'results': data})
