diff options
| author | Stephan Groß | 2013-05-28 07:39:56 -0700 |
|---|---|---|
| committer | Stephan Groß | 2013-05-28 07:39:56 -0700 |
| commit | f6d7f54fc15ed3bb97b1d97ff1ecaf99e933660e (patch) | |
| tree | a1c18df58b9b8ae459d1c36ff083855e6c942844 /docs/api-guide/viewsets.md | |
| parent | 22e1950e1cca237e6edeea3ddc9c798b975c6183 (diff) | |
| parent | 8f35ac4f93c608eaced3f48a46e8922104e09182 (diff) | |
| download | django-rest-framework-f6d7f54fc15ed3bb97b1d97ff1ecaf99e933660e.tar.bz2 | |
Merge pull request #897 from pborreli/typos
Fixed typos
Diffstat (limited to 'docs/api-guide/viewsets.md')
| -rw-r--r-- | docs/api-guide/viewsets.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/viewsets.md b/docs/api-guide/viewsets.md index 31570d74..79364626 100644 --- a/docs/api-guide/viewsets.md +++ b/docs/api-guide/viewsets.md @@ -34,7 +34,7 @@ Let's define a simple viewset that can be used to list or retrieve all the users serializer = UserSerializer(user) return Response(serializer.data) -If we need to, we can bind this viewset into two seperate views, like so: +If we need to, we can bind this viewset into two separate views, like so: user_list = UserViewSet.as_view({'get': 'list'}) user_detail = UserViewSet.as_view({'get': 'retrieve'}) @@ -92,7 +92,7 @@ The default routers included with REST framework will provide routes for a stand def destroy(self, request, pk=None): pass -If you have ad-hoc methods that you need to be routed to, you can mark them as requiring routing using the `@link` or `@action` decorators. The `@link` decorator will route `GET` requests, and the `@action` decroator will route `POST` requests. +If you have ad-hoc methods that you need to be routed to, you can mark them as requiring routing using the `@link` or `@action` decorators. The `@link` decorator will route `GET` requests, and the `@action` decorator will route `POST` requests. For example: |
