Skip to content

Commit a323cf7

Browse files
authored
improved docs/api-guide/filtering.md for better understanding (#9795)
1 parent 5cc1633 commit a323cf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api-guide/filtering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ For example:
235235

236236
search_fields = ['=username', '=email']
237237

238-
By default, the search parameter is named `'search'`, but this may be overridden with the `SEARCH_PARAM` setting.
238+
By default, the search parameter is named `'search'`, but this may be overridden with the `SEARCH_PARAM` setting in the `REST_FRAMEWORK` configuration.
239239

240240
To dynamically change search fields based on request content, it's possible to subclass the `SearchFilter` and override the `get_search_fields()` function. For example, the following subclass will only search on `title` if the query parameter `title_only` is in the request:
241241

@@ -257,7 +257,7 @@ The `OrderingFilter` class supports simple query parameter controlled ordering o
257257

258258
![Ordering Filter](../img/ordering-filter.png)
259259

260-
By default, the query parameter is named `'ordering'`, but this may be overridden with the `ORDERING_PARAM` setting.
260+
By default, the query parameter is named `'ordering'`, but this may be overridden with the `ORDERING_PARAM` setting in the `REST_FRAMEWORK` configuration.
261261

262262
For example, to order users by username:
263263

0 commit comments

Comments
 (0)