aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/4-authentication-and-permissions.md
diff options
context:
space:
mode:
authorTom Christie2015-01-19 15:23:08 +0000
committerTom Christie2015-01-19 15:23:08 +0000
commite5b94f7b7bbf2f6f35c5e33fb2723bdb0d33bad3 (patch)
treea156a4a29a26540c52e5580ffa555b14d6c63fbe /docs/tutorial/4-authentication-and-permissions.md
parentdbb684117f6fe0f9c34f98d5e914fc106090cdbc (diff)
parent3cc39ffbceffc5fdbb511d9a10e7732329e8baa4 (diff)
downloaddjango-rest-framework-e5b94f7b7bbf2f6f35c5e33fb2723bdb0d33bad3.tar.bz2
Merge branch 'version-3.1' into cursor-pagination
Diffstat (limited to 'docs/tutorial/4-authentication-and-permissions.md')
-rw-r--r--docs/tutorial/4-authentication-and-permissions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md
index 592c77e8..887d1e56 100644
--- a/docs/tutorial/4-authentication-and-permissions.md
+++ b/docs/tutorial/4-authentication-and-permissions.md
@@ -177,7 +177,7 @@ In the snippets app, create a new file, `permissions.py`
# Write permissions are only allowed to the owner of the snippet.
return obj.owner == request.user
-Now we can add that custom permission to our snippet instance endpoint, by editing the `permission_classes` property on the `SnippetDetail` class:
+Now we can add that custom permission to our snippet instance endpoint, by editing the `permission_classes` property on the `SnippetDetail` view class:
permission_classes = (permissions.IsAuthenticatedOrReadOnly,
IsOwnerOrReadOnly,)