diff options
| author | Tom Christie | 2013-09-26 16:09:31 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-09-26 16:09:31 +0100 |
| commit | 1fd83adb9c1f888ed05d5b6d570b5e37996f96ba (patch) | |
| tree | 35fef6873d7c643aea1deb7cc903b179662eed4d /docs/api-guide | |
| parent | 75d6446c8799763dccde0f5f03fbcae39c18dc7f (diff) | |
| parent | 57a51f790bdff6c1cf34f3c6d64b0bef3033d89e (diff) | |
| download | django-rest-framework-1fd83adb9c1f888ed05d5b6d570b5e37996f96ba.tar.bz2 | |
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
Diffstat (limited to 'docs/api-guide')
| -rw-r--r-- | docs/api-guide/filtering.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/filtering.md b/docs/api-guide/filtering.md index 859e8d52..784aa585 100644 --- a/docs/api-guide/filtering.md +++ b/docs/api-guide/filtering.md @@ -195,9 +195,9 @@ For more details on using filter sets see the [django-filter documentation][djan ## SearchFilter -The `SearchFilterBackend` class supports simple single query parameter based searching, and is based on the [Django admin's search functionality][search-django-admin]. +The `SearchFilter` class supports simple single query parameter based searching, and is based on the [Django admin's search functionality][search-django-admin]. -The `SearchFilterBackend` 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`. class UserListView(generics.ListAPIView): queryset = User.objects.all() |
