diff options
| author | Tom Christie | 2013-07-10 21:12:27 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-07-10 21:12:27 +0100 |
| commit | edc358565276fdab3c2249bdc8ab306c891997b3 (patch) | |
| tree | 8c79ffe462cba148f714a357cfa18b979f934aa7 /docs | |
| parent | 045ad73f69388decff4c26a79ce191bc825672fd (diff) | |
| parent | 91d0545361021eecc86ba06223208c06d2520aa5 (diff) | |
| download | django-rest-framework-edc358565276fdab3c2249bdc8ab306c891997b3.tar.bz2 | |
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api-guide/views.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/views.md b/docs/api-guide/views.md index 37ebd55f..683222d1 100644 --- a/docs/api-guide/views.md +++ b/docs/api-guide/views.md @@ -137,11 +137,11 @@ The core of this functionality is the `api_view` decorator, which takes a list o return Response({"message": "Hello, world!"}) -This view will use the default renderers, parsers, authentication classes etc specified in the [settings](settings). +This view will use the default renderers, parsers, authentication classes etc specified in the [settings]. ## API policy decorators -To override the default settings, REST framework provides a set of additional decorators which can be added to your views. These must come *after* (below) the `@api_view` decorator. For example, to create a view that uses a [throttle](throttling) to ensure it can only be called once per day by a particular user, use the `@throttle_classes` decorator, passing a list of throttle classes: +To override the default settings, REST framework provides a set of additional decorators which can be added to your views. These must come *after* (below) the `@api_view` decorator. For example, to create a view that uses a [throttle][throttling] to ensure it can only be called once per day by a particular user, use the `@throttle_classes` decorator, passing a list of throttle classes: from rest_framework.decorators import api_view, throttle_classes from rest_framework.throttling import UserRateThrottle |
