diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-26 14:41:13 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-26 14:41:13 +0000 |
| commit | f14c98e44c388e7171977b9be8d70dd3176d7919 (patch) | |
| tree | 692c3579804d504977ec8f98ab26a740190537de /docs/tutorial02.txt | |
| parent | e207378ad36caf0cb322bb264b569e0d915963f4 (diff) | |
Fixed #203 -- Added explicit comma to tutorial 2. Thanks, sirpete@iki.fi
git-svn-id: http://code.djangoproject.com/svn/django/trunk@315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial02.txt')
| -rw-r--r-- | docs/tutorial02.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial02.txt b/docs/tutorial02.txt index 133b9c2a8f..5ca9ed7778 100644 --- a/docs/tutorial02.txt +++ b/docs/tutorial02.txt @@ -330,7 +330,7 @@ change that by giving that method a ``short_description`` attribute:: Let's add another improvement to the Poll change list page: Filters. Add the following line to ``Poll.admin``:: - list_filter = ('pub_date', ) + list_filter = ['pub_date'], That adds a "Filter" sidebar that lets people filter the change list by the ``pub_date`` field: @@ -347,7 +347,7 @@ fields. This is shaping up well. Let's add some search capability:: - search_fields = ('question', ) + 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 |
