This commit is contained in:
Michel van Leeuwen 2013-01-07 13:09:09 -08:00
commit e1b35a8309

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