diff options
| author | Tom Christie | 2012-08-24 22:11:00 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-08-24 22:11:00 +0100 |
| commit | aed26b218ea39110489e85abc6f412399a1774a1 (patch) | |
| tree | 0b461ba4f7f5266056b6463e9b80214e5e273502 /djangorestframework/permissions.py | |
| parent | 87b363f7bc5f73d850df123a61895d65ec0b05e7 (diff) | |
| download | django-rest-framework-aed26b218ea39110489e85abc6f412399a1774a1.tar.bz2 | |
Drop out resources & mixins
Diffstat (limited to 'djangorestframework/permissions.py')
| -rw-r--r-- | djangorestframework/permissions.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index 4a2b1b00..ec008bd9 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -18,7 +18,6 @@ __all__ = ( 'IsUserOrIsAnonReadOnly', 'PerUserThrottling', 'PerViewThrottling', - 'PerResourceThrottling' ) SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS'] @@ -253,16 +252,3 @@ class PerViewThrottling(BaseThrottle): def get_cache_key(self): return 'throttle_view_%s' % self.view.__class__.__name__ - - -class PerResourceThrottling(BaseThrottle): - """ - Limits the rate of API calls that may be used against all views on - a given resource. - - The class name of the resource is used as a unique identifier to - throttle against. - """ - - def get_cache_key(self): - return 'throttle_resource_%s' % self.view.resource.__class__.__name__ |
