Browse Source

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
Justin Bronn 15 years ago
parent
commit
bca753e283
3 changed files with 6 additions and 3 deletions
  1. 1 1
      AUTHORS
  2. 3 2
      docs/intro/tutorial03.txt
  3. 2 0
      docs/intro/tutorial04.txt

+ 1 - 1
AUTHORS

@@ -487,8 +487,8 @@ answer newbie questions, and generally made Django that much better:
     Mike Wiacek <mjwiacek@google.com>
     Mike Wiacek <mjwiacek@google.com>
     Frank Wierzbicki
     Frank Wierzbicki
     charly.wilhelm@gmail.com
     charly.wilhelm@gmail.com
+    Derek Willis <http://blog.thescoop.org/>
     Rachel Willmer <http://www.willmer.com/kb/>
     Rachel Willmer <http://www.willmer.com/kb/>
-    Gary Wilson <gary.wilson@gmail.com>
     Jakub Wilk <ubanus@users.sf.net>
     Jakub Wilk <ubanus@users.sf.net>
     Jakub Wiśniowski <restless.being@gmail.com>
     Jakub Wiśniowski <restless.being@gmail.com>
     Maciej Wiśniowski <pigletto@gmail.com>
     Maciej Wiśniowski <pigletto@gmail.com>

+ 3 - 2
docs/intro/tutorial03.txt

@@ -261,7 +261,7 @@ Put the following code in that template:
     {% if latest_poll_list %}
     {% if latest_poll_list %}
         <ul>
         <ul>
         {% for poll in latest_poll_list %}
         {% for poll in latest_poll_list %}
-            <li>{{ poll.question }}</li>
+            <li><a href="/polls/{{ poll.id }}/">{{ poll.question }}</a><</li>
         {% endfor %}
         {% endfor %}
         </ul>
         </ul>
     {% else %}
     {% else %}
@@ -269,7 +269,8 @@ Put the following code in that template:
     {% endif %}
     {% endif %}
 
 
 Load the page in your Web browser, and you should see a bulleted-list
 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()
 A shortcut: render_to_response()
 --------------------------------
 --------------------------------

+ 2 - 0
docs/intro/tutorial04.txt

@@ -174,6 +174,8 @@ Now, create a ``results.html`` template:
     {% endfor %}
     {% endfor %}
     </ul>
     </ul>
 
 
+    <a href="/polls/{{ poll.id }}/">Vote again?</a>
+
 Now, go to ``/polls/1/`` in your browser and vote in the poll. You should see a
 Now, go to ``/polls/1/`` in your browser and vote in the poll. You should see a
 results page that gets updated each time you vote. If you submit the form
 results page that gets updated each time you vote. If you submit the form
 without having chosen a choice, you should see the error message.
 without having chosen a choice, you should see the error message.