@@ -0,0 +1,406 @@
+from django.conf import settings%0A%0Afrom rest_framework.pagination import PageNumberPagination%0A%0A%0Adef paginated_queryset(queryset, request):%0A    '''%0A        Return a paginated result for a queryset%0A    '''%0A    paginator = PageNumberPagination()%0A    paginator.page_size = settings.REST_FRAMEWORK%5B'PAGE_SIZE'%5D%0A    result_page = paginator.paginate_queryset(queryset, request)%0A    return (paginator, result_page)%0A

add function to paginate in generic way. (#401)