Skip to content

Commit

Permalink
[1.7.x] Added warning in tutorial 4 that the regex capture group name…
Browse files Browse the repository at this point in the history
… has changed.

Backport of 731f313 from master
  • Loading branch information
rikkiprince authored and timgraham committed Jul 22, 2014
1 parent 0e35ae3 commit 04030ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/intro/tutorial04.txt
Expand Up @@ -233,6 +233,9 @@ First, open the ``polls/urls.py`` URLconf and change it like so:
url(r'^(?P<question_id>\d+)/vote/$', views.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
Expand Down

0 comments on commit 04030ac

Please sign in to comment.