1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00

Added warning in tutorial 4 that the regex capture group name has changed.

This commit is contained in:
Rikki 2014-07-21 23:37:45 +01:00 committed by Tim Graham
parent 06ba4b9eee
commit 731f313d60

View File

@ -233,6 +233,9 @@ First, open the ``polls/urls.py`` URLconf and change it like so:
url(r'^(?P<question_id>[0-9]+)/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