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:47 -0400 |
| commit | 04030acb85c8fecae7ae3773c9595bb14bdb4547 (patch) | |
| tree | f31ab1a69a6953517cd35d52112d180b05622e6b /docs/intro | |
| parent | 0e35ae37bbff7f25d17c678867127055b9874d8a (diff) | |
[1.7.x] Added warning in tutorial 4 that the regex capture group name has changed.
Backport of 731f313d60 from master
Diffstat (limited to 'docs/intro')
| -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 d769e7a9b1..d4a6352efd 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>\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 |
