|  | @@ -5,8 +5,9 @@ Autocomplete
 | 
	
		
			
				|  |  |  By default Django JET renders all possible choices for select inputs. This behavior may be unwanted if number of
 | 
	
		
			
				|  |  |  available options is rather big. In this case Django JET allows you to load these options dynamically through AJAX.
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -In order to achieve this functionality all you have to do is specify which model fields should be
 | 
	
		
			
				|  |  | -searchable by AJAX queries. Add this static method to your model and that's it!
 | 
	
		
			
				|  |  | +In order to achieve this functionality all you have to do is :
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +* Specify which model fields should be searchable by AJAX queries. Add this static method to all models which you want to be searchable with AJAX:
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  .. code:: python
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -35,7 +36,19 @@ Example from Django JET demo site:
 | 
	
		
			
				|  |  |          def autocomplete_search_fields():
 | 
	
		
			
				|  |  |              return 'name', 'city__name'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -Now all your admin select boxes will perform AJAX queries to load available options while you type.
 | 
	
		
			
				|  |  | +* Use custom AJAX filter class ``jet.filters.RelatedFieldAjaxListFilter`` if you have any foreign key list filters:
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +.. code:: python
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    from jet.filters import RelatedFieldAjaxListFilter
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    class PersonAdmin(admin.ModelAdmin):
 | 
	
		
			
				|  |  | +        list_filter = (
 | 
	
		
			
				|  |  | +            ...
 | 
	
		
			
				|  |  | +            ('address', RelatedFieldAjaxListFilter),
 | 
	
		
			
				|  |  | +        )
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +* Now all your admin select boxes will perform AJAX queries to load available options while you type.
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  .. note::
 | 
	
		
			
				|  |  |      This work for both ForeignKey and ManyToManyField fields.
 |