diff options
| author | Tom Christie | 2012-10-03 09:26:15 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-10-03 09:26:15 +0100 |
| commit | c30e0795bebd9980a66ae7db1a0d8c43f77d4c11 (patch) | |
| tree | 8b8dee7c7b15dd21fad9358cd97f274df4801527 /docs/tutorial/3-class-based-views.md | |
| parent | d1b99f350aded62fe480f7dc4749cd63d52715d2 (diff) | |
| download | django-rest-framework-c30e0795bebd9980a66ae7db1a0d8c43f77d4c11.tar.bz2 | |
Rename generic views
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 25d5773f..663138bd 100644 --- a/docs/tutorial/3-class-based-views.md +++ b/docs/tutorial/3-class-based-views.md @@ -136,12 +136,12 @@ Using the mixin classes we've rewritten the views to use slightly less code than from rest_framework import generics - class CommentRoot(generics.RootAPIView): + class CommentRoot(generics.ListCreateAPIView): model = Comment serializer_class = CommentSerializer - class CommentInstance(generics.InstanceAPIView): + class CommentInstance(generics.RetrieveUpdateDestroyAPIView): model = Comment serializer_class = CommentSerializer |
