The `SearchFilter` class will only be applied if the view has a `search_fields` attribute set. The `search_fields` attribute should be a list of names of text type fields on the model, such as `CharField` or `TextField`.
The `SearchFilter` class will only be applied if the view has a `search_fields` attribute set. The `search_fields` attribute should be a list of names of text type fields on the model, such as `CharField` or `TextField`.
...
@@ -291,7 +291,7 @@ For more details, see the [Django documentation][search-django-admin].
...
@@ -291,7 +291,7 @@ For more details, see the [Django documentation][search-django-admin].
The `OrderingFilter` class supports simple query parameter controlled ordering of results.
The `OrderingFilter` class supports simple query parameter controlled ordering of results.