mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Made some tiny tweaks to docs/tutorial02.txt -- thanks, anonymous
git-svn-id: http://code.djangoproject.com/svn/django/trunk@527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -302,6 +302,7 @@ on the change list page for the object:: | |||||||
|     class Poll(meta.Model): |     class Poll(meta.Model): | ||||||
|         # ... |         # ... | ||||||
|         admin = meta.Admin( |         admin = meta.Admin( | ||||||
|  |             # ... | ||||||
|             list_display = ('question', 'pub_date'), |             list_display = ('question', 'pub_date'), | ||||||
|         ) |         ) | ||||||
|  |  | ||||||
| @@ -342,8 +343,7 @@ That adds a "Filter" sidebar that lets people filter the change list by the | |||||||
| The type of filter displayed depends on the type of field you're filtering on. | The type of filter displayed depends on the type of field you're filtering on. | ||||||
| Because ``pub_date`` is a DateTimeField, Django knows to give the default | Because ``pub_date`` is a DateTimeField, Django knows to give the default | ||||||
| filter options for DateTimeFields: "Any date," "Today," "Past 7 days," | filter options for DateTimeFields: "Any date," "Today," "Past 7 days," | ||||||
| "This month," "This year." Explore using ``list_filter`` on other types of | "This month," "This year." | ||||||
| fields. |  | ||||||
|  |  | ||||||
| This is shaping up well. Let's add some search capability:: | This is shaping up well. Let's add some search capability:: | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user