aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/authentication.md
diff options
context:
space:
mode:
authorStephan Groß2012-10-29 09:25:17 +0100
committerStephan Groß2012-10-29 09:25:17 +0100
commitff4804a36079f9c1d480a788397af3a7f8391371 (patch)
tree8c86814329f12b46540ce5f4b89d40644cb891a8 /docs/api-guide/authentication.md
parent73cf859e26608e1310c07df789553fa2b6cd1f8b (diff)
downloaddjango-rest-framework-ff4804a36079f9c1d480a788397af3a7f8391371.tar.bz2
fix api_view decorator useage
Diffstat (limited to 'docs/api-guide/authentication.md')
-rw-r--r--docs/api-guide/authentication.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md
index 7bad4867..889d16c0 100644
--- a/docs/api-guide/authentication.md
+++ b/docs/api-guide/authentication.md
@@ -50,7 +50,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',)),
+ @api_view(['GET'])
@authentication_classes((SessionAuthentication, UserBasicAuthentication))
@permissions_classes((IsAuthenticated,))
def example_view(request, format=None):