Commit 04030acb authored by Rikki's avatar Rikki Committed by Tim Graham
Browse files

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

Backport of 731f313d from master
parent 0e35ae37
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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