diff options
Diffstat (limited to 'docs/tutorial')
| -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 b2b6443c..2f273364 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 |
