diff options
| author | Tom Christie | 2015-01-15 21:07:05 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-01-15 21:07:05 +0000 | 
| commit | 53edd37df5aa0ac29dbe7824db2e33da1d901f98 (patch) | |
| tree | 862167ddeeb914af6f51145a222f477b46ec2f9a /docs/api-guide/pagination.md | |
| parent | 68dfa369b5ca877643b41c8df7c5fc0c786a9f08 (diff) | |
| download | django-rest-framework-53edd37df5aa0ac29dbe7824db2e33da1d901f98.tar.bz2 | |
Tests for LimitOffsetPagination
Diffstat (limited to 'docs/api-guide/pagination.md')
| -rw-r--r-- | docs/api-guide/pagination.md | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md index ba71a303..8ab2edd5 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -63,7 +63,7 @@ Or apply the style globally, using the `DEFAULT_PAGINATION_CLASS` settings key.  # Custom pagination styles -To create a custom pagination serializer class you should subclass `pagination.BasePagination` and override the `paginate_queryset(self, queryset, request, view)` and `get_paginated_response(self, data)` methods: +To create a custom pagination serializer class you should subclass `pagination.BasePagination` and override the `paginate_queryset(self, queryset, request, view=None)` and `get_paginated_response(self, data)` methods:  * The `paginate_queryset` method is passed the initial queryset and should return an iterable object that contains only the data in the requested page.  * The `get_paginated_response` method is passed the serialized page data and should return a `Response` instance. | 
