diff options
| author | Rikki <rikki@prince.io> | 2014-07-21 23:37:45 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-22 14:00:22 -0400 |
| commit | 731f313d604a6cc141f36d8a1ba9a75790c70154 (patch) | |
| tree | b1871bb526ce8744b2e4a8fc9dc498863132bfff /docs/intro/tutorial04.txt | |
| parent | 06ba4b9eee7f60feda6dbbe753604d5bb029f06a (diff) | |
Added warning in tutorial 4 that the regex capture group name has changed.
Diffstat (limited to 'docs/intro/tutorial04.txt')
| -rw-r--r-- | docs/intro/tutorial04.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 59b0b8e81a..51cc34a30f 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -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 |
