aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/4-authentication-and-permissions/index.html
diff options
context:
space:
mode:
authorXavier Ordoquy2015-01-27 23:15:26 +0100
committerXavier Ordoquy2015-01-27 23:15:26 +0100
commit987880e13138a93d9cc0e44b7ed30297909f7b03 (patch)
tree1925d91078eff41d05a8e9840c503b6117d41446 /tutorial/4-authentication-and-permissions/index.html
parentd8dbd8679080035de4e785a8e7b998fb01f4052b (diff)
downloaddjango-rest-framework-987880e13138a93d9cc0e44b7ed30297909f7b03.tar.bz2
Update documentation
Diffstat (limited to 'tutorial/4-authentication-and-permissions/index.html')
-rw-r--r--tutorial/4-authentication-and-permissions/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorial/4-authentication-and-permissions/index.html b/tutorial/4-authentication-and-permissions/index.html
index c05e6cee..e4e5fccc 100644
--- a/tutorial/4-authentication-and-permissions/index.html
+++ b/tutorial/4-authentication-and-permissions/index.html
@@ -543,7 +543,7 @@ class IsOwnerOrReadOnly(permissions.BasePermission):
# Write permissions are only allowed to the owner of the snippet.
return obj.owner == request.user
</code></pre>
-<p>Now we can add that custom permission to our snippet instance endpoint, by editing the <code>permission_classes</code> property on the <code>SnippetDetail</code> class:</p>
+<p>Now we can add that custom permission to our snippet instance endpoint, by editing the <code>permission_classes</code> property on the <code>SnippetDetail</code> view class:</p>
<pre><code>permission_classes = (permissions.IsAuthenticatedOrReadOnly,
IsOwnerOrReadOnly,)
</code></pre>