Browse files

[1.7.x] Added warning in tutorial 4 that the regex capture group name…

… has changed.

Backport of 731f313 from master
  • Loading branch information...
rikkiprince authored and timgraham committed Jul 21, 2014
1 parent 0e35ae3 commit 04030acb85c8fecae7ae3773c9595bb14bdb4547
Showing with 3 additions and 0 deletions.
  1. +3 −0 docs/intro/tutorial04.txt
@@ -233,6 +233,9 @@ First, open the ``polls/`` URLconf and change it like so:
url(r'^(?P<question_id>\d+)/vote/$',, name='vote'),
+Note that the name of the matched pattern in the regexes of the second and third
+patterns has changed from ``<question_id>`` to ``<pk>``.
.. _tutorial04-amend-views:
Amend views

0 comments on commit 04030ac

Please sign in to comment.