From 5f243ae65781a518bcaf7d930b9bad30bc969909 Mon Sep 17 00:00:00 2001 From: James Summerfield Date: Mon, 13 May 2013 08:54:04 +0200 Subject: [PATCH] Section 5 requires URLs in section 4 to be named. --- docs/tutorial/3-class-based-views.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/3-class-based-views.md b/docs/tutorial/3-class-based-views.md index 70cf2c546..af1e8bccf 100644 --- a/docs/tutorial/3-class-based-views.md +++ b/docs/tutorial/3-class-based-views.md @@ -69,8 +69,8 @@ We'll also need to refactor our URLconf slightly now we're using class based vie from snippets import views urlpatterns = patterns('', - url(r'^snippets/$', views.SnippetList.as_view()), - url(r'^snippets/(?P[0-9]+)/$', views.SnippetDetail.as_view()), + url(r'^snippets/$', views.SnippetList.as_view(), name='snippet-list'), + url(r'^snippets/(?P[0-9]+)/$', views.SnippetDetail.as_view(), name='snippet-detail'), ) urlpatterns = format_suffix_patterns(urlpatterns)