Update docs/api-guide/pagination.md

If you use the default pagination settings, but for a specific view you don't want to have the pagination, it might be handy to know setting paginate_by to 0 will tutn pagination off for this particular view.
This commit is contained in:
Michel van Leeuwen 2013-01-05 14:49:16 +01:00
parent 8a4e2c1725
commit a1fca49c2c

View File

@ -96,9 +96,12 @@ You can also set the pagination style on a per-view basis, using the `ListAPIVie
model = ExampleModel
paginate_by = 10
paginate_by_param = 'page_size'
Note: to override the default pagination settings on a per-view basis, using 'paginate_by = 0' will turn off the pagination for this view
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