diff options
| author | Tom Christie | 2014-06-12 12:22:09 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-06-12 12:22:09 +0100 | 
| commit | 106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9 (patch) | |
| tree | 6cc268279408148a61c95a63cad523dc0e6589a4 /api-guide/pagination.html | |
| parent | 03ddd237c93ea5b9159260c49fd856595dbea53c (diff) | |
| download | django-rest-framework-106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9.tar.bz2 | |
Latest docs build
Diffstat (limited to 'api-guide/pagination.html')
| -rw-r--r-- | api-guide/pagination.html | 3 | 
1 files changed, 2 insertions, 1 deletions
| 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  </code></pre> -<p>Note that using a <code>paginate_by</code> value of <code>None</code> will turn off pagination for the view.</p> +<p>Note that using a <code>paginate_by</code> value of <code>None</code> will turn off pagination for the view. +Note if you use the <code>PAGINATE_BY_PARAM</code> settings, you also have to set the <code>paginate_by_param</code> attribute in your view to <code>None</code> in order to turn off pagination for those requests that contain the <code>paginate_by_param</code> parameter.</p>  <p>For more complex requirements such as serialization that differs depending on the requested media type you can override the <code>.get_paginate_by()</code> and <code>.get_pagination_serializer_class()</code> methods.</p>  <hr />  <h1 id="custom-pagination-serializers">Custom pagination serializers</h1> | 
