[1.7.x] Fixed #22836 -- Linked tutorial05 to the right section of tutorial04.

Backport of 608aa8d101 from master
This commit is contained in:
Maxime Turcotte 2014-06-19 21:46:18 -04:00 committed by Tim Graham
parent 9005894233
commit 0b871ec22a
2 changed files with 3 additions and 1 deletions

View File

@ -233,6 +233,8 @@ First, open the ``polls/urls.py`` URLconf and change it like so:
url(r'^(?P<question_id>\d+)/vote/$', views.vote, name='vote'), url(r'^(?P<question_id>\d+)/vote/$', views.vote, name='vote'),
) )
.. _tutorial04-amend-views:
Amend views Amend views
----------- -----------

View File

@ -390,7 +390,7 @@ Improving our view
The list of polls shows polls that aren't published yet (i.e. those that have a The list of polls shows polls that aren't published yet (i.e. those that have a
``pub_date`` in the future). Let's fix that. ``pub_date`` in the future). Let's fix that.
In :doc:`Tutorial 4 </intro/tutorial04>` we introduced a class-based view, In :ref:`Tutorial 4 <tutorial04-amend-views>` we introduced a class-based view,
based on :class:`~django.views.generic.list.ListView`: based on :class:`~django.views.generic.list.ListView`:
.. snippet:: .. snippet::