mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.6.x] Fixed #22546 -- Removed idioms in tutorial 2.
Thanks bjb at sourcerer.ca for the suggestion.
Backport of 927245ccd8 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							f6e9127483
						
					
				
				
					commit
					2a0f942cbd
				
			| @@ -383,7 +383,8 @@ This is shaping up well. Let's add some search capability:: | |||||||
| That adds a search box at the top of the change list. When somebody enters | That adds a search box at the top of the change list. When somebody enters | ||||||
| search terms, Django will search the ``question`` field. You can use as many | search terms, Django will search the ``question`` field. You can use as many | ||||||
| fields as you'd like -- although because it uses a ``LIKE`` query behind the | fields as you'd like -- although because it uses a ``LIKE`` query behind the | ||||||
| scenes, keep it reasonable, to keep your database happy. | scenes, limiting the number of search fields to a reasonable number will make | ||||||
|  | it easier for your database to do the search. | ||||||
|  |  | ||||||
| Now's also a good time to note that change lists give you free pagination. The | Now's also a good time to note that change lists give you free pagination. The | ||||||
| default is to display 100 items per page. Change-list pagination, search boxes, | default is to display 100 items per page. Change-list pagination, search boxes, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user