From 1d65378886990a1dc5c36403d454ce251fbda457 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 9 Mar 2015 10:18:32 +0000 Subject: Update documentation --- api-guide/pagination/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'api-guide/pagination/index.html') diff --git a/api-guide/pagination/index.html b/api-guide/pagination/index.html index 37cb383e..d9a3395a 100644 --- a/api-guide/pagination/index.html +++ b/api-guide/pagination/index.html @@ -502,10 +502,10 @@ class StandardResultsSetPagination(PageNumberPagination): }

Setup

-

To enable the PageNumberPagination style globally, use the following configuration, modifying the DEFAULT_PAGE_SIZE as desired:

+

To enable the PageNumberPagination style globally, use the following configuration, modifying the PAGE_SIZE as desired:

REST_FRAMEWORK = {
     'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
-    'DEFAULT_PAGE_SIZE': 100
+    'PAGE_SIZE': 100
 }
 

On GenericAPIView subclasses you may also set the pagination_class attribute to select PageNumberPagination on a per-view basis.

@@ -513,7 +513,7 @@ class StandardResultsSetPagination(PageNumberPagination):

The PageNumberPagination class includes a number of attributes that may be overridden to modify the pagination style.

To set these attributes you should override the PageNumberPagination class, and then enable your custom pagination class as above.