From c30e0795bebd9980a66ae7db1a0d8c43f77d4c11 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 3 Oct 2012 09:26:15 +0100 Subject: Rename generic views --- docs/tutorial/3-class-based-views.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/tutorial/3-class-based-views.md') 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 -- cgit v1.2.3