def search_non_paginate(self, request, *args, **kwargs): queryset = UserService.get_filter_query(request) data = self.get_serializer(queryset, many=True).data return Response(data)
def search(self, request, *args, **kwargs): queryset = UserService.get_filter_query(request) page = self.paginate_queryset(queryset) data = self.get_serializer(page, many=True).data return self.get_paginated_response(data)