From 81c46499443310284c01879177a8acfd3ad25b12 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 17 Aug 2005 15:01:12 +0000 Subject: [PATCH] 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 --- docs/tutorial02.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial02.txt b/docs/tutorial02.txt index 5ef9fe1af1..bd1832fcc6 100644 --- a/docs/tutorial02.txt +++ b/docs/tutorial02.txt @@ -302,6 +302,7 @@ on the change list page for the object:: class Poll(meta.Model): # ... admin = meta.Admin( + # ... 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. Because ``pub_date`` is a DateTimeField, Django knows to give the default filter options for DateTimeFields: "Any date," "Today," "Past 7 days," -"This month," "This year." Explore using ``list_filter`` on other types of -fields. +"This month," "This year." This is shaping up well. Let's add some search capability::