Ticket #18667: ticket1234.diff

File ticket1234.diff, 666 bytes (added by ybon, 3 years ago)
  • docs/ref/class-based-views/generic-display.txt

    diff --git a/docs/ref/class-based-views/generic-display.txt b/docs/ref/class-based-views/generic-display.txt
    index b90cbf9..bbf0d4f 100644
    a b many projects they are typically the most commonly used views. 
    5454        from article.views import ArticleDetailView
    5555
    5656        urlpatterns = patterns('',
    57             url(r'^(?P<slug>[-_\w]+)/$', ArticleDetailView.as_view(), 'article-detail'),
     57            url(r'^(?P<slug>[-_\w]+)/$', ArticleDetailView.as_view(), name='article-detail'),
    5858        )   
    5959
    6060.. class:: django.views.generic.list.ListView
Back to Top