diff options
| author | Tom Christie | 2014-11-03 11:21:29 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-11-03 11:21:29 +0000 |
| commit | dd14c6c88ba210bac8349041b8db486576539249 (patch) | |
| tree | 81b1e22fb8080a8d3915ae6a5db95edf87a3bfb6 /tutorial/3-class-based-views.html | |
| parent | ce165805481988e95887bf62c45cd616af5bba0f (diff) | |
| download | django-rest-framework-dd14c6c88ba210bac8349041b8db486576539249.tar.bz2 | |
Latest docs release
Diffstat (limited to 'tutorial/3-class-based-views.html')
| -rw-r--r-- | tutorial/3-class-based-views.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/3-class-based-views.html b/tutorial/3-class-based-views.html index 83ba088e..c8a1d728 100644 --- a/tutorial/3-class-based-views.html +++ b/tutorial/3-class-based-views.html @@ -263,10 +263,10 @@ class SnippetList(APIView): from rest_framework.urlpatterns import format_suffix_patterns from snippets import views -urlpatterns = patterns('', +urlpatterns = [ url(r'^snippets/$', views.SnippetList.as_view()), url(r'^snippets/(?P<pk>[0-9]+)/$', views.SnippetDetail.as_view()), -) +] urlpatterns = format_suffix_patterns(urlpatterns) </code></pre> |
