diff options
| author | Justin Bronn <jbronn@gmail.com> | 2010-02-23 15:00:33 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2010-02-23 15:00:33 +0000 |
| commit | bca753e283366101991dbc1758b66fd9339ba32d (patch) | |
| tree | 541b133fe446fde4517dc5c10da556320e647c30 /docs/intro/tutorial03.txt | |
| parent | 8da76ffeaa47547edb24f99a55f8c9e1a8986b90 (diff) | |
Fixed #12485 -- Added links to polls templates in tutorial. Thanks, gungadin for ticket and Derek Willis for patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial03.txt')
| -rw-r--r-- | docs/intro/tutorial03.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 41e10a7abd..9d97a094e6 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -261,7 +261,7 @@ Put the following code in that template: {% if latest_poll_list %} <ul> {% for poll in latest_poll_list %} - <li>{{ poll.question }}</li> + <li><a href="/polls/{{ poll.id }}/">{{ poll.question }}</a><</li> {% endfor %} </ul> {% else %} @@ -269,7 +269,8 @@ Put the following code in that template: {% endif %} Load the page in your Web browser, and you should see a bulleted-list -containing the "What's up" poll from Tutorial 1. +containing the "What's up" poll from Tutorial 1. The link points to the poll's +detail page. A shortcut: render_to_response() -------------------------------- |
