diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2010-09-13 19:43:41 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2010-09-13 19:43:41 +0000 |
| commit | 0c8e8b15b59592ad0406d2fc416061225753799e (patch) | |
| tree | 712b30ad4f9c8de5947c2951c536252990440646 /docs/intro | |
| parent | c6754100051d48511721cecaebd636b6f56be203 (diff) | |
[1.2.X] Fixed #12918 - Tutorial page 2 issues
Thanks to Leam for report, cassidy for patch.
Backport of [13841] from trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro')
| -rw-r--r-- | docs/intro/tutorial02.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index fcdb812c81..d43df9ed53 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -284,7 +284,7 @@ registration code to read:: This tells Django: "Choice objects are edited on the Poll admin page. By default, provide enough fields for 3 choices." -Load the "Add poll" page to see how that looks: +Load the "Add poll" page to see how that looks, you may need to restart your development server: .. image:: _images/admin11t.png :alt: Add poll page now has choices on it @@ -350,7 +350,7 @@ method (in ``models.py``) a ``short_description`` attribute:: return self.pub_date.date() == datetime.date.today() was_published_today.short_description = 'Published today?' -Let's add another improvement to the Poll change list page: Filters. Add the +Edit your admin.py file again and add an improvement to the Poll change list page: Filters. Add the following line to ``PollAdmin``:: list_filter = ['pub_date'] |
