Opened 3 years ago

Closed 3 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 3 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 3 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Changed 3 years ago by ybon

comment:2 Changed 3 years ago by apollo13

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top