diff options
| author | Tom Christie | 2012-09-25 12:21:35 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-25 12:21:35 +0100 |
| commit | 921c5840aa64c184bcfa6cc2344d0fdca406548b (patch) | |
| tree | 062008ff4cb5ba8eea5ce4f290e17cfad13204ca /docs/tutorial | |
| parent | d68684e26eb8765e0c4eb7d56deee03bed9df5c9 (diff) | |
| download | django-rest-framework-921c5840aa64c184bcfa6cc2344d0fdca406548b.tar.bz2 | |
Fix incorrect bit of tutorial
Diffstat (limited to 'docs/tutorial')
| -rw-r--r-- | docs/tutorial/3-class-based-views.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/3-class-based-views.md b/docs/tutorial/3-class-based-views.md index 8db29308..25d5773f 100644 --- a/docs/tutorial/3-class-based-views.md +++ b/docs/tutorial/3-class-based-views.md @@ -53,7 +53,7 @@ So far, so good. It looks pretty similar to the previous case, but we've got be comment = self.get_object(pk) serializer = CommentSerializer(request.DATA, instance=comment) if serializer.is_valid(): - comment = serializer.deserialized + comment = serializer.object comment.save() return Response(serializer.data) return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) |
