summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMaxime Turcotte <maxime.turcotte@savoirfairelinux.com>2014-06-19 21:46:18 -0400
committerTim Graham <timograham@gmail.com>2014-06-20 08:16:53 -0400
commit0b871ec22a3397063a0150d26efc0d1e1a293108 (patch)
tree986e3d70b9679906a7d4f9865446c48a0bd7dc43 /docs
parent90058942338528a9e6b0995c8cd0f357ca0ed900 (diff)
[1.7.x] Fixed #22836 -- Linked tutorial05 to the right section of tutorial04.
Backport of 608aa8d101 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/intro/tutorial04.txt2
-rw-r--r--docs/intro/tutorial05.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt
index 9aa0011e51..d769e7a9b1 100644
--- a/docs/intro/tutorial04.txt
+++ b/docs/intro/tutorial04.txt
@@ -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'),
)
+.. _tutorial04-amend-views:
+
Amend views
-----------
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt
index a2b1ba1f0f..24a7b29807 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -390,7 +390,7 @@ Improving our view
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.
-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`:
.. snippet::