diff options
| author | Tom Christie | 2011-05-23 17:09:29 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-05-23 17:09:29 +0100 |
| commit | 698df527a3b80edbf4278ea52e88c1699b2f2256 (patch) | |
| tree | 467355534b496ab29c7960133d2057b27fdc13ea /djangorestframework/permissions.py | |
| parent | c53175914752502629141556f3e001e9d2e9f7fa (diff) | |
| parent | 82c4ca96126cfedd4a8471452d956e8bb432ba5b (diff) | |
| download | django-rest-framework-698df527a3b80edbf4278ea52e88c1699b2f2256.tar.bz2 | |
check in marko's docs
Diffstat (limited to 'djangorestframework/permissions.py')
| -rw-r--r-- | djangorestframework/permissions.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index 3831424f..1f6151f8 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -1,3 +1,9 @@ +""" +The :mod:`permissions` module bundles a set of permission classes that are used +for checking if a request passes a certain set of constraints. You can assign a permision +class to your view by setting your View's :attr:`permissions` class attribute. +""" + from django.core.cache import cache from djangorestframework import status from djangorestframework.response import ErrorResponse @@ -36,7 +42,7 @@ class BasePermission(object): def check_permission(self, auth): """ - Should simply return, or raise an :class:`response.ErrorResponse`. + Should simply return, or raise an :exc:`response.ErrorResponse`. """ pass |
