From 106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 12 Jun 2014 12:22:09 +0100 Subject: Latest docs build --- api-guide/pagination.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api-guide/pagination.html') diff --git a/api-guide/pagination.html b/api-guide/pagination.html index d8c67612..c83a78ee 100644 --- a/api-guide/pagination.html +++ b/api-guide/pagination.html @@ -277,7 +277,8 @@ def user_list(request): paginate_by_param = 'page_size' max_paginate_by = 100 -

Note that using a paginate_by value of None will turn off pagination for the view.

+

Note that using a paginate_by value of None will turn off pagination for the view. +Note if you use the PAGINATE_BY_PARAM settings, you also have to set the paginate_by_param attribute in your view to None in order to turn off pagination for those requests that contain the paginate_by_param parameter.

For more complex requirements such as serialization that differs depending on the requested media type you can override the .get_paginate_by() and .get_pagination_serializer_class() methods.


Custom pagination serializers

-- cgit v1.2.3