Skip to content

Commit e301e2d

Browse files
Adding 'view or viewset' to docs appropriate.
1 parent d985aec commit e301e2d

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

docs/api-guide/authentication.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ The default authentication schemes may be set globally, using the `DEFAULT_AUTHE
4343
)
4444
}
4545

46-
You can also set the authentication scheme on a per-view basis, using the `APIView` class based views.
46+
You can also set the authentication scheme on a per-view or per-viewset basis,
47+
using the `APIView` class based views.
4748

4849
class ExampleView(APIView):
4950
authentication_classes = (SessionAuthentication, BasicAuthentication)

docs/api-guide/filtering.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ You must also set the filter backend to `DjangoFilterBackend` in your settings:
9494

9595
## Specifying filter fields
9696

97-
If all you need is simple equality-based filtering, you can set a `filter_fields` attribute on the view, listing the set of fields you wish to filter against.
97+
If all you need is simple equality-based filtering, you can set a `filter_fields` attribute on the view, or viewset,
98+
listing the set of fields you wish to filter against.
9899

99100
class ProductList(generics.ListAPIView):
100101
queryset = Product.objects.all()

docs/api-guide/parsers.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ The default set of parsers may be set globally, using the `DEFAULT_PARSER_CLASSE
3434
)
3535
}
3636

37-
You can also set the renderers used for an individual view, using the `APIView` class based views.
37+
You can also set the renderers used for an individual view, or viewset,
38+
using the `APIView` class based views.
3839

3940
class ExampleView(APIView):
4041
"""
@@ -187,4 +188,4 @@ The following third party packages are also available.
187188
[cite]: https://groups.google.com/d/topic/django-developers/dxI4qVzrBY4/discussion
188189
[messagepack]: https://github.com/juanriaza/django-rest-framework-msgpack
189190
[juanriaza]: https://github.com/juanriaza
190-
[djangorestframework-msgpack]: https://github.com/juanriaza/django-rest-framework-msgpack
191+
[djangorestframework-msgpack]: https://github.com/juanriaza/django-rest-framework-msgpack

docs/api-guide/permissions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ If not specified, this setting defaults to allowing unrestricted access:
3939
'rest_framework.permissions.AllowAny',
4040
)
4141

42-
You can also set the authentication policy on a per-view basis, using the `APIView` class based views.
42+
You can also set the authentication policy on a per-view, or per-viewset basis,
43+
using the `APIView` class based views.
4344

4445
class ExampleView(APIView):
4546
permission_classes = (IsAuthenticated,)

docs/api-guide/renderers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ The default set of renderers may be set globally, using the `DEFAULT_RENDERER_CL
2727
)
2828
}
2929

30-
You can also set the renderers used for an individual view, using the `APIView` class based views.
30+
You can also set the renderers used for an individual view, or viewset,
31+
using the `APIView` class based views.
3132

3233
class UserCountView(APIView):
3334
"""

docs/api-guide/throttling.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ The default throttling policy may be set globally, using the `DEFAULT_THROTTLE_C
4040

4141
The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `second`, `minute`, `hour` or `day` as the throttle period.
4242

43-
You can also set the throttling policy on a per-view basis, using the `APIView` class based views.
43+
You can also set the throttling policy on a per-view or per-viewset basis,
44+
using the `APIView` class based views.
4445

4546
class ExampleView(APIView):
4647
throttle_classes = (UserThrottle,)
@@ -167,4 +168,4 @@ The following is an example of a rate throttle, that will randomly throttle 1 in
167168
[cite]: https://dev.twitter.com/docs/error-codes-responses
168169
[permissions]: permissions.md
169170
[cache-setting]: https://docs.djangoproject.com/en/dev/ref/settings/#caches
170-
[cache-docs]: https://docs.djangoproject.com/en/dev/topics/cache/#setting-up-the-cache
171+
[cache-docs]: https://docs.djangoproject.com/en/dev/topics/cache/#setting-up-the-cache

0 commit comments

Comments
 (0)