Opened 13 years ago
Closed 13 years ago
#18667 closed Cleanup/optimization (fixed)
Typo on CBV documentation
Description ¶
Here:
I think the line:
url(r'^(?P<slug>[-_\w]+)/$', ArticleDetailView.as_view(), 'article-detail'),
should be
url(r'^(?P<slug>[-_\w]+)/$', ArticleDetailView.as_view(), name='article-detail'),
otherwise the name is mapped to the "kwarg" parameter.
I'll make a pull request for the glory.
Change History (3)
comment:1 by , 13 years ago
by , 13 years ago
Attachment: | ticket1234.diff added |
---|
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Here is the PR: https://github.com/django/django/pull/232