From fcd026f50627d7a542a385ca7404aecca8cb89c5 Mon Sep 17 00:00:00 2001 From: Camille Harang Date: Thu, 2 Feb 2012 03:27:20 +0100 Subject: [PATCH] Doc review for the permission IsModelInstanceOwnerOrIsAnonReadOnly --- djangorestframework/permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index cd28438d1..aad013b25 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -81,8 +81,8 @@ class IsModelInstanceOwnerOrIsAnonReadOnly(BasePermission): """ The request is authenticated as the owner of the model instance, or is a read-only request. - In order to determine the owner the model has to provide a .get_owner() function, - otherwise the permission will be denied. + In order to determine the owner, the model has to provide a .get_owner() function that + returns the owner, otherwise the permission will be denied. """ def check_permission(self, user):