aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/3-class-based-views.md
diff options
context:
space:
mode:
authorTom Christie2014-08-18 10:53:11 +0100
committerTom Christie2014-08-18 10:53:11 +0100
commitb9cb9929b98c16cb056fa27109fbd6fe37c25111 (patch)
treefd82a5aebef4b3b01bdf5708ea70375bfee877df /docs/tutorial/3-class-based-views.md
parent3bb0a7e45d9deadb9a8153f0e50ccf4aea21ac90 (diff)
parent867e441ec07fc182569c3dbe6f86fe42aa6b0cbf (diff)
downloaddjango-rest-framework-b9cb9929b98c16cb056fa27109fbd6fe37c25111.tar.bz2
Merge pull request #1761 from sshquack/minor-doc-updates
Trivial doc updates
Diffstat (limited to 'docs/tutorial/3-class-based-views.md')
-rw-r--r--docs/tutorial/3-class-based-views.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/3-class-based-views.md b/docs/tutorial/3-class-based-views.md
index b37bc31b..e04072ca 100644
--- a/docs/tutorial/3-class-based-views.md
+++ b/docs/tutorial/3-class-based-views.md
@@ -30,7 +30,7 @@ We'll start by rewriting the root view as a class based view. All this involves
return Response(serializer.data, status=status.HTTP_201_CREATED)
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
-So far, so good. It looks pretty similar to the previous case, but we've got better separation between the different HTTP methods. We'll also need to update the instance view in `views.py`.
+So far, so good. It looks pretty similar to the previous case, but we've got better separation between the different HTTP methods. We'll also need to update the instance view in `views.py`.
class SnippetDetail(APIView):
"""
@@ -72,7 +72,7 @@ We'll also need to refactor our `urls.py` slightly now we're using class based v
url(r'^snippets/$', views.SnippetList.as_view()),
url(r'^snippets/(?P<pk>[0-9]+)/$', views.SnippetDetail.as_view()),
)
-
+
urlpatterns = format_suffix_patterns(urlpatterns)
Okay, we're done. If you run the development server everything should be working just as before.