'Return an instance of the paginator for this view.'

def get_paginator(self, queryset, per_page, orphans=0, allow_empty_first_page=True, **kwargs):

    return self.paginator_class(queryset, per_page, orphans=orphans, allow_empty_first_page=allow_empty_first_page, **kwargs)
