Skip to content

Commit 3abf9cc

Browse files
Ishuinsigvef
authored andcommitted
Punctuations and missing "to" preposition (encode#7966)
Changes made in lines 221, 222, 223, and 224 for better readability.
1 parent 393b449 commit 3abf9cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api-guide/pagination.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ To set these attributes you should override the `CursorPagination` class, and th
218218

219219
# Custom pagination styles
220220

221-
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:
221+
To create a custom pagination serializer class, you should inherit the subclass `pagination.BasePagination`, override the `paginate_queryset(self, queryset, request, view=None)`, and `get_paginated_response(self, data)` methods:
222222

223-
* The `paginate_queryset` method is passed the initial queryset and should return an iterable object that contains only the data in the requested page.
224-
* The `get_paginated_response` method is passed the serialized page data and should return a `Response` instance.
223+
* The `paginate_queryset` method is passed to the initial queryset and should return an iterable object. That object contains only the data in the requested page.
224+
* The `get_paginated_response` method is passed to the serialized page data and should return a `Response` instance.
225225

226226
Note that the `paginate_queryset` method may set state on the pagination instance, that may later be used by the `get_paginated_response` method.
227227

0 commit comments

Comments
 (0)