diff options
| author | sshquack | 2014-08-15 20:45:28 -0600 |
|---|---|---|
| committer | sshquack | 2014-08-15 20:45:28 -0600 |
| commit | 867e441ec07fc182569c3dbe6f86fe42aa6b0cbf (patch) | |
| tree | abed866613809f8efe96d03dac3e8d1dffb950d8 /docs/tutorial/3-class-based-views.md | |
| parent | 14867705e90b2b5f7e84dc7385d4ffba0c82b3e1 (diff) | |
| download | django-rest-framework-867e441ec07fc182569c3dbe6f86fe42aa6b0cbf.tar.bz2 | |
Strip trailing spaces in tutorial
Diffstat (limited to 'docs/tutorial/3-class-based-views.md')
| -rw-r--r-- | docs/tutorial/3-class-based-views.md | 4 |
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. |
