diff options
| author | Tom Christie | 2013-04-25 12:47:34 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-04-25 12:47:34 +0100 |
| commit | 95abe6e8445f59f9e52609b0c54d9276830dbfd3 (patch) | |
| tree | b74d076e5d4e84d0ed8ead11843ad5e52b9da335 /rest_framework/throttling.py | |
| parent | b94da2468cdda6b0ad491574d35097d0e336ea7f (diff) | |
| download | django-rest-framework-95abe6e8445f59f9e52609b0c54d9276830dbfd3.tar.bz2 | |
Cleanup docstrings
Diffstat (limited to 'rest_framework/throttling.py')
| -rw-r--r-- | rest_framework/throttling.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rest_framework/throttling.py b/rest_framework/throttling.py index 810cad63..93ea9816 100644 --- a/rest_framework/throttling.py +++ b/rest_framework/throttling.py @@ -1,3 +1,6 @@ +""" +Provides various throttling policies. +""" from __future__ import unicode_literals from django.core.cache import cache from rest_framework import exceptions @@ -28,9 +31,8 @@ class SimpleRateThrottle(BaseThrottle): A simple cache implementation, that only requires `.get_cache_key()` to be overridden. - The rate (requests / seconds) is set by a :attr:`throttle` attribute - on the :class:`.View` class. The attribute is a string of the form 'number of - requests/period'. + The rate (requests / seconds) is set by a `throttle` attribute on the View + class. The attribute is a string of the form 'number_of_requests/period'. Period should be one of: ('s', 'sec', 'm', 'min', 'h', 'hour', 'd', 'day') |
