'Stores the view to be able to call some methods of it
in get_paginated_response. Does the default other than that.'

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

    self.view = view
    return super(SearchPagination, self).paginate_queryset(queryset, request, view=view)
