From 7ade7678196347224789a46c77b17df7f3f3ccb4 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 17 Jul 2005 05:54:43 +0000 Subject: [PATCH] Tiny tweaks to tutorial02.txt git-svn-id: http://code.djangoproject.com/svn/django/trunk@141 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 eb2ae052e3..7228e13411 100644 --- a/docs/tutorial02.txt +++ b/docs/tutorial02.txt @@ -411,14 +411,14 @@ filter options for DateTimeFields: "Any date," "Today," "Past 7 days," "This month," "This year." Explore using ``list_filter`` on other types of fields. -This is shaping up well. Finally, let's add some search capability:: +This is shaping up well. Let's add some search capability:: search_fields = ('question', ) 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 fields as you'd like -- although because it uses a LIKE query behind the -scenes, keep it reasonable to mind your database performance. +scenes, keep it reasonable, to keep your database happy. Finally, because Poll objects have dates, it'd be convenient to be able to drill down by date. Add this line::