diff --git a/docs/api-guide/filtering.md b/docs/api-guide/filtering.md index bc1cc710d..461f3c5ba 100644 --- a/docs/api-guide/filtering.md +++ b/docs/api-guide/filtering.md @@ -432,8 +432,11 @@ The method should return a rendered HTML string. ## Pagination & schemas You can also make the filter controls available to the schema autogeneration -that REST framework provides, by implementing a `get_schema_fields()` method, -which should return a list of `coreapi.Field` instances. +that REST framework provides, by implementing a `get_schema_fields()` method. This method should have the following signature: + +`get_schema_fields(self, view)` + +The method should return a list of `coreapi.Field` instances. # Third party packages diff --git a/docs/api-guide/pagination.md b/docs/api-guide/pagination.md index bc7a5602d..888390018 100644 --- a/docs/api-guide/pagination.md +++ b/docs/api-guide/pagination.md @@ -279,8 +279,11 @@ API responses for list endpoints will now include a `Link` header, instead of in ## Pagination & schemas You can also make the pagination controls available to the schema autogeneration -that REST framework provides, by implementing a `get_schema_fields()` method, -which should return a list of `coreapi.Field` instances. +that REST framework provides, by implementing a `get_schema_fields()` method. This method should have the following signature: + +`get_schema_fields(self, view)` + +The method should return a list of `coreapi.Field` instances. ---