This commit is contained in:
Tom Christie 2013-04-27 16:35:42 +02:00
parent 73019f91fe
commit 33a26a76f1

View File

@ -26,7 +26,7 @@ As with view level permissions, an `exceptions.PermissionDenied` exception will
If you're writing your own views and want to enforce object level permissions, If you're writing your own views and want to enforce object level permissions,
you'll need to explicitly call the `.check_object_permissions(request, obj)` method on the view at the point at which you've retrieved the object. you'll need to explicitly call the `.check_object_permissions(request, obj)` method on the view at the point at which you've retrieved the object.
This will either raise a `PermissionDenied` or `NotAuthenticated` exception, or simply return if the view has the appropraite permissions. This will either raise a `PermissionDenied` or `NotAuthenticated` exception, or simply return if the view has the appropriate permissions.
## Setting the permission policy ## Setting the permission policy