'Return a single page of results, or `None` if pagination is disabled.'

def paginate_queryset(self, queryset):

    if (self.paginator is None):
        return None
    return self.paginator.paginate_queryset(queryset, self.request, view=self)
