mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Match docs to current code.
This commit is contained in:
		
							parent
							
								
									97dd78d88c
								
							
						
					
					
						commit
						fda0c520bd
					
				| 
						 | 
					@ -195,9 +195,9 @@ For more details on using filter sets see the [django-filter documentation][djan
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SearchFilter
 | 
					## 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):
 | 
					    class UserListView(generics.ListAPIView):
 | 
				
			||||||
        queryset = User.objects.all()
 | 
					        queryset = User.objects.all()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user