aboutsummaryrefslogtreecommitdiffstats
path: root/examples/permissionsexample/views.py
diff options
context:
space:
mode:
authorTom Christie2012-04-11 17:38:47 +0100
committerTom Christie2012-04-11 17:38:47 +0100
commit4739e1c012526c3ed9835d908d6d7eff5e3c48f6 (patch)
tree800f2133bf50449e2698f562d5d1d2dd199168e3 /examples/permissionsexample/views.py
parent44df8345f3ffcba141ded3a1bd993971d7199164 (diff)
parent1ff741d1ccc38f099a7159bdef787e5c04dc4f79 (diff)
downloaddjango-rest-framework-4739e1c012526c3ed9835d908d6d7eff5e3c48f6.tar.bz2
Merge work from sebpiq
Diffstat (limited to 'examples/permissionsexample/views.py')
-rw-r--r--examples/permissionsexample/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/permissionsexample/views.py b/examples/permissionsexample/views.py
index 13384c9f..f3dafcd4 100644
--- a/examples/permissionsexample/views.py
+++ b/examples/permissionsexample/views.py
@@ -30,7 +30,7 @@ class ThrottlingExampleView(View):
throttle will be applied until 60 seconds have passed since the first request.
"""
- permissions = (PerUserThrottling,)
+ permissions_classes = (PerUserThrottling,)
throttle = '10/min'
def get(self, request):
@@ -47,7 +47,7 @@ class LoggedInExampleView(View):
`curl -X GET -H 'Accept: application/json' -u test:test http://localhost:8000/permissions-example`
"""
- permissions = (IsAuthenticated, )
+ permissions_classes = (IsAuthenticated, )
def get(self, request):
return Response('You have permission to view this resource')