Opened 12 years ago
Closed 12 years ago
#18667 closed Cleanup/optimization (fixed)
Typo on CBV documentation
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | cbv |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
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.
Attachments (1)
Change History (3)
comment:1 by , 12 years ago
by , 12 years ago
Attachment: | ticket1234.diff added |
---|
comment:2 by , 12 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