diff options
| author | Tom Christie | 2011-05-10 10:49:28 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-05-10 10:49:28 +0100 |
| commit | 8f58ee489d34b200acfc2666816eb32e47c8cef5 (patch) | |
| tree | e1c4a273b46abd9ad7c74d6837108d31a7b76d9c /djangorestframework/tests/throttling.py | |
| parent | d373b3a067796b8e181be9368fa24e89c572c45e (diff) | |
| download | django-rest-framework-8f58ee489d34b200acfc2666816eb32e47c8cef5.tar.bz2 | |
Getting the API into shape
Diffstat (limited to 'djangorestframework/tests/throttling.py')
| -rw-r--r-- | djangorestframework/tests/throttling.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/tests/throttling.py b/djangorestframework/tests/throttling.py index 94d01428..e7a054cd 100644 --- a/djangorestframework/tests/throttling.py +++ b/djangorestframework/tests/throttling.py @@ -4,11 +4,11 @@ from django.utils import simplejson as json from djangorestframework.compat import RequestFactory from djangorestframework.views import BaseView -from djangorestframework.permissions import Throttling +from djangorestframework.permissions import PerUserThrottling class MockView(BaseView): - permissions = ( Throttling, ) + permissions = ( PerUserThrottling, ) throttle = (3, 1) # 3 requests per second def get(self, request): |
