aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndrey Kaygorodov2014-02-05 21:10:51 +0800
committerAndrey Kaygorodov2014-02-05 21:10:51 +0800
commit2d20512d259f51a5a5c2b71b20f98d24e0176f16 (patch)
tree08fc692615d69986c6d239c7b71b4ec811653ef9 /docs
parentd48ba1cff76ffceb1d700e9e0c6ccf518a6382da (diff)
downloaddjango-rest-framework-2d20512d259f51a5a5c2b71b20f98d24e0176f16.tar.bz2
#1390, docs, turning of pagination
Diffstat (limited to 'docs')
-rw-r--r--docs/api-guide/pagination.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md
index f86e6ce1..047a0988 100644
--- a/docs/api-guide/pagination.md
+++ b/docs/api-guide/pagination.md
@@ -102,7 +102,8 @@ You can also set the pagination style on a per-view basis, using the `ListAPIVie
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. But if you specified `PAGINATE_BY` and `PAGINATE_BY_PARAM` in your settings file then you have to set both `paginate_by` and `paginate_by_param` to a `None` value in order to 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.