diff options
| author | Richard Wackerbarth | 2013-01-10 16:16:30 -0600 |
|---|---|---|
| committer | Richard Wackerbarth | 2013-01-10 16:16:30 -0600 |
| commit | 7dd5c56f225c7fe97a23101eea1bb839110d8ed2 (patch) | |
| tree | dd002c75bd1342097f9063ee10eed8f4c6cfb4f0 /docs/tutorial/1-serialization.md | |
| parent | 7ae1111d02c4b4ffe525bc9a79c3b55f0b165bc9 (diff) | |
| download | django-rest-framework-7dd5c56f225c7fe97a23101eea1bb839110d8ed2.tar.bz2 | |
Make the whitespace uniform
Diffstat (limited to 'docs/tutorial/1-serialization.md')
| -rw-r--r-- | docs/tutorial/1-serialization.md | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 28aaea4d..db6db2da 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -202,8 +202,6 @@ Open the file `snippets/serializers.py` again, and edit the `SnippetSerializer` model = Snippet fields = ('id', 'title', 'code', 'linenos', 'language', 'style') - - ## Writing regular Django views using our Serializer Let's see how we can write some API views using our new Serializer class. @@ -229,7 +227,6 @@ Edit the `snippet/views.py` file, and add the following. kwargs['content_type'] = 'application/json' super(JSONResponse, self).__init__(content, **kwargs) - The root of our API is going to be a view that supports listing all the existing snippets, or creating a new snippet. @csrf_exempt |
