Opened 7 years ago

Closed 7 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



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)

ticket1234.diff (666 bytes) - added by ybon 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by ybon

Attachment: ticket1234.diff added

comment:2 Changed 7 years ago by Florian Apolloner

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top