Commit 3868241f by Marko Tibold

Update docs/api-guide/permissions.md

@permission_classes takes a tuple or list.
parent 3e3ede71
...@@ -53,7 +53,7 @@ You can also set the authentication policy on a per-view basis, using the `APIVi ...@@ -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. Or, if you're using the `@api_view` decorator with function based views.
@api_view('GET') @api_view('GET')
@permission_classes(IsAuthenticated) @permission_classes((IsAuthenticated, ))
def example_view(request, format=None): def example_view(request, format=None):
content = { content = {
'status': 'request was permitted' 'status': 'request was permitted'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment