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:

https://docs.djangoproject.com/en/dev/ref/class-based-views/generic-display/#django.views.generic.detail.DetailView

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 12 years ago.

Download all attachments as: .zip

Change History (3)

by ybon, 12 years ago

Attachment: ticket1234.diff added

comment:2 by Florian Apolloner, 12 years ago

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