summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorThijs van Dien <thijs@vandien.net>2015-11-07 15:50:43 +0100
committerTim Graham <timograham@gmail.com>2015-11-07 22:02:03 +0100
commit78a28cca200e6e03432bab9bf73856b8f778c6f0 (patch)
treeded552a3a759fa1e9bb998cf89243745f4de177c /docs/ref
parentbd55e8063544e0f7990bab7d9c981a6dc22c1654 (diff)
[1.8.x] Fixed #25473 -- Changed underscores in url() names to dashes in docs.
To improve consistency, sample URL names that had underscores in them now use dashes instead. That excludes URL names that have some relation to the code, such as those generated by the admin. Thanks guettli for reporting this. Backport of 1679472165e840aef4c8c9ece2fbf4620b87beab from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/urlresolvers.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt
index b8d5b58f71..20f4d4ef8a 100644
--- a/docs/ref/urlresolvers.txt
+++ b/docs/ref/urlresolvers.txt
@@ -18,12 +18,12 @@ For example, given the following ``url``::
from news import views
- url(r'^archive/$', views.archive, name='news_archive')
+ url(r'^archive/$', views.archive, name='news-archive')
you can use any of the following to reverse the URL::
# using the named URL
- reverse('news_archive')
+ reverse('news-archive')
# passing a callable object
# (This is discouraged because you can't reverse namespaced views this way.)