diff options
| author | Marko Tibold | 2012-12-05 15:09:06 +0100 |
|---|---|---|
| committer | Marko Tibold | 2012-12-05 15:09:06 +0100 |
| commit | 3868241f6acda96fbd08cc81211b09ffbc2f38b3 (patch) | |
| tree | 1713c3c82423355d499bf370986722588082b78c /docs | |
| parent | 3e3ede71d2f4826fa1d07523705dd53ab2cba29a (diff) | |
| download | django-rest-framework-3868241f6acda96fbd08cc81211b09ffbc2f38b3.tar.bz2 | |
Update docs/api-guide/permissions.md
@permission_classes takes a tuple or list.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api-guide/permissions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/permissions.md b/docs/api-guide/permissions.md index 1a746fb6..fce68f6d 100644 --- a/docs/api-guide/permissions.md +++ b/docs/api-guide/permissions.md @@ -53,7 +53,7 @@ You can also set the authentication policy on a per-view basis, using the `APIVi Or, if you're using the `@api_view` decorator with function based views. @api_view('GET') - @permission_classes(IsAuthenticated) + @permission_classes((IsAuthenticated, )) def example_view(request, format=None): content = { 'status': 'request was permitted' |
