Code

Ticket #18667: ticket1234.diff

File ticket1234.diff, 666 bytes (added by ybon, 21 months ago)
Line 
1diff --git a/docs/ref/class-based-views/generic-display.txt b/docs/ref/class-based-views/generic-display.txt
2index b90cbf9..bbf0d4f 100644
3--- a/docs/ref/class-based-views/generic-display.txt
4+++ b/docs/ref/class-based-views/generic-display.txt
5@@ -54,7 +54,7 @@ many projects they are typically the most commonly used views.
6         from article.views import ArticleDetailView
7 
8         urlpatterns = patterns('',
9-            url(r'^(?P<slug>[-_\w]+)/$', ArticleDetailView.as_view(), 'article-detail'),
10+            url(r'^(?P<slug>[-_\w]+)/$', ArticleDetailView.as_view(), name='article-detail'),
11         )   
12 
13 .. class:: django.views.generic.list.ListView