mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Note paginate_by=None usage. Fixes #555.
This commit is contained in:
parent
4bb504732d
commit
31b585f26a
|
@ -97,6 +97,8 @@ You can also set the pagination style on a per-view basis, using the `ListAPIVie
|
|||
paginate_by = 10
|
||||
paginate_by_param = 'page_size'
|
||||
|
||||
Note that using a `paginate_by` value of `None` will turn off pagination for the 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.
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue
Block a user