diff options
| author | Pascal Borreli | 2013-05-28 15:09:23 +0100 | 
|---|---|---|
| committer | Pascal Borreli | 2013-05-28 15:09:23 +0100 | 
| commit | 8f35ac4f93c608eaced3f48a46e8922104e09182 (patch) | |
| tree | 55b394b57fc7b0e40283d89dc23dd0b41dfc074d /docs/api-guide/viewsets.md | |
| parent | 7123f0b1e6b29778c41476341bd2370f60c279fa (diff) | |
| download | django-rest-framework-8f35ac4f93c608eaced3f48a46e8922104e09182.tar.bz2 | |
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: | 
