From 023c008939c81ba8c33b4344b2c7756687e3be0b Mon Sep 17 00:00:00 2001 From: Sébastien Piquemal Date: Thu, 23 Feb 2012 23:19:51 +0200 Subject: fixed permissions examples + sanity test --- examples/permissionsexample/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/permissionsexample/views.py') 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') -- cgit v1.2.3