aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/4-authentication-and-permissions/index.html
diff options
context:
space:
mode:
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>