Fixed #293 -- Typo in tutorial04. Thanks, espen@grindhaug.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d87ca56c63
commit
e79eb09f21
|
@ -129,11 +129,6 @@ Now, create a ``results.html`` template::
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
And edit the ``detail.html`` template to add this snippet toward the top of the
|
|
||||||
page somewhere::
|
|
||||||
|
|
||||||
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
|
|
||||||
|
|
||||||
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.
|
||||||
|
|
Loading…
Reference in New Issue