diff options
| author | Tom Christie | 2011-05-19 08:49:57 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-05-19 08:49:57 +0100 |
| commit | e7f8c06dbbbc9e4ae91327ee02cd8147777b17e2 (patch) | |
| tree | d2a0788753c03eb438ac44d97520b132be0d9097 /djangorestframework/permissions.py | |
| parent | 8c3280f9c0d73c4e2536f1d757ad457b4a8f1de7 (diff) | |
| parent | 92c015e0495b7cf39b0d0387fe6d376812a9ebef (diff) | |
| download | django-rest-framework-e7f8c06dbbbc9e4ae91327ee02cd8147777b17e2.tar.bz2 | |
Merge in marko's doc markup
Diffstat (limited to 'djangorestframework/permissions.py')
| -rw-r--r-- | djangorestframework/permissions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index ae550f25..3831424f 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -36,7 +36,7 @@ class BasePermission(object): def check_permission(self, auth): """ - Should simply return, or raise an ErrorResponse. + Should simply return, or raise an :class:`response.ErrorResponse`. """ pass @@ -60,7 +60,7 @@ class IsAuthenticated(BasePermission): raise _403_FORBIDDEN_RESPONSE -class IsAdminUser(): +class IsAdminUser(BasePermission): """ Allows access only to admin users. """ @@ -86,7 +86,7 @@ class PerUserThrottling(BasePermission): """ Rate throttling of requests on a per-user basis. - The rate is set by a 'throttle' attribute on the ``View`` class. + The rate (requests / seconds) is set by a :attr:`throttle` attribute on the ``View`` class. The attribute is a two tuple of the form (number of requests, duration in seconds). The user id will be used as a unique identifier if the user is authenticated. |
