diff options
| author | Thijs van Dien <thijs@vandien.net> | 2015-11-07 15:50:43 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-11-07 21:59:59 +0100 |
| commit | f5e1d72de2e111ef2449f858b672c9cf4ecbb9ff (patch) | |
| tree | ab678d3f7d86966b85203daeac506c57086d6477 /docs/topics/class-based-views | |
| parent | 1eb2ff3ff75b0f08276e0c3e10c99ed111572d8c (diff) | |
[1.9.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/topics/class-based-views')
| -rw-r--r-- | docs/topics/class-based-views/generic-editing.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/class-based-views/generic-editing.txt b/docs/topics/class-based-views/generic-editing.txt index 0ada8db42a..4908d6a99e 100644 --- a/docs/topics/class-based-views/generic-editing.txt +++ b/docs/topics/class-based-views/generic-editing.txt @@ -163,9 +163,9 @@ Finally, we hook these new views into the URLconf: urlpatterns = [ # ... - url(r'author/add/$', AuthorCreate.as_view(), name='author_add'), - url(r'author/(?P<pk>[0-9]+)/$', AuthorUpdate.as_view(), name='author_update'), - url(r'author/(?P<pk>[0-9]+)/delete/$', AuthorDelete.as_view(), name='author_delete'), + url(r'author/add/$', AuthorCreate.as_view(), name='author-add'), + url(r'author/(?P<pk>[0-9]+)/$', AuthorUpdate.as_view(), name='author-update'), + url(r'author/(?P<pk>[0-9]+)/delete/$', AuthorDelete.as_view(), name='author-delete'), ] .. note:: |
