Skip to content

Commit

Permalink
Tiny tweaks to tutorial02.txt
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jul 17, 2005
1 parent 069bd05 commit 7ade767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial02.txt
Expand Up @@ -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::
Expand Down

0 comments on commit 7ade767

Please sign in to comment.