diff options
| author | Tom Christie | 2012-11-01 23:11:28 +0000 | 
|---|---|---|
| committer | Tom Christie | 2012-11-01 23:11:28 +0000 | 
| commit | 36e21153fbc60579c49e46c3f6488ff7bcb1f6ff (patch) | |
| tree | 86097abd5482538c7c026dd233566026b6e6bcad /docs/tutorial | |
| parent | d327c5f531b341ad980d20454211b02b87f34d0e (diff) | |
| parent | 600289a8153eb70542551bab00d59fb7ff0065f0 (diff) | |
| download | django-rest-framework-36e21153fbc60579c49e46c3f6488ff7bcb1f6ff.tar.bz2 | |
Merge master
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 a31dccb2..91ef4038 100644 --- a/docs/tutorial/3-class-based-views.md +++ b/docs/tutorial/3-class-based-views.md @@ -92,7 +92,7 @@ Let's take a look at how we can compose our views by using the mixin classes.      class SnippetList(mixins.ListModelMixin,                        mixins.CreateModelMixin, -                      generics.MultipleObjectBaseView): +                      generics.MultipleObjectAPIView):          model = Snippet          serializer_class = SnippetSerializer @@ -102,7 +102,7 @@ Let's take a look at how we can compose our views by using the mixin classes.          def post(self, request, *args, **kwargs):              return self.create(request, *args, **kwargs) -We'll take a moment to examine exactly what's happening here - We're building our view using `MultipleObjectBaseView`, and adding in `ListModelMixin` and `CreateModelMixin`. +We'll take a moment to examine exactly what's happening here - We're building our view using `MultipleObjectAPIView`, and adding in `ListModelMixin` and `CreateModelMixin`.  The base class provides the core functionality, and the mixin classes provide the `.list()` and `.create()` actions.  We're then explicitly binding the `get` and `post` methods to the appropriate actions.  Simple enough stuff so far. | 
