Skip to content

Commit

Permalink
[1.2.X] Fixed #12918 - Tutorial page 2 issues
Browse files Browse the repository at this point in the history
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
  • Loading branch information
spookylukey committed Sep 13, 2010
1 parent c675410 commit 0c8e8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/intro/tutorial02.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ registration code to read::
This tells Django: "Choice objects are edited on the Poll admin page. By This tells Django: "Choice objects are edited on the Poll admin page. By
default, provide enough fields for 3 choices." 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 .. image:: _images/admin11t.png
:alt: Add poll page now has choices on it :alt: Add poll page now has choices on it
Expand Down Expand Up @@ -350,7 +350,7 @@ method (in ``models.py``) a ``short_description`` attribute::
return self.pub_date.date() == datetime.date.today() return self.pub_date.date() == datetime.date.today()
was_published_today.short_description = 'Published 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``:: following line to ``PollAdmin``::


list_filter = ['pub_date'] list_filter = ['pub_date']
Expand Down

0 comments on commit 0c8e8b1

Please sign in to comment.