aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial
diff options
context:
space:
mode:
authorColin Murtaugh2012-12-11 17:26:08 -0500
committerColin Murtaugh2012-12-11 17:26:08 -0500
commit9188d487c3a0465b2a3e0d1c47f76c3df844b7d0 (patch)
tree7cd52e68731644804e40ba50734124b79184939b /docs/tutorial
parent85bf4164ddef2ad6d2f58457d6621cb807ab4d29 (diff)
downloaddjango-rest-framework-9188d487c3a0465b2a3e0d1c47f76c3df844b7d0.tar.bz2
Replaced SingleObjectBaseView with SingleObjectAPIView
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/3-class-based-views.md4
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 a3a18060..b115b022 100644
--- a/docs/tutorial/3-class-based-views.md
+++ b/docs/tutorial/3-class-based-views.md
@@ -109,7 +109,7 @@ The base class provides the core functionality, and the mixin classes provide th
class SnippetDetail(mixins.RetrieveModelMixin,
mixins.UpdateModelMixin,
mixins.DestroyModelMixin,
- generics.SingleObjectBaseView):
+ generics.SingleObjectAPIView):
model = Snippet
serializer_class = SnippetSerializer
@@ -122,7 +122,7 @@ The base class provides the core functionality, and the mixin classes provide th
def delete(self, request, *args, **kwargs):
return self.destroy(request, *args, **kwargs)
-Pretty similar. This time we're using the `SingleObjectBaseView` class to provide the core functionality, and adding in mixins to provide the `.retrieve()`, `.update()` and `.destroy()` actions.
+Pretty similar. This time we're using the `SingleObjectAPIView` class to provide the core functionality, and adding in mixins to provide the `.retrieve()`, `.update()` and `.destroy()` actions.
## Using generic class based views