diff options
| author | Tom Christie | 2015-01-10 14:07:13 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-10 14:07:13 +0000 |
| commit | 605c1fa0a8d9b4ebcfdfa2273628739fc38f6d1e (patch) | |
| tree | aa9bec5366d552c3c0727e050e264c1e7c45ac33 /docs/tutorial/4-authentication-and-permissions.md | |
| parent | 7e921caf4b9079a676735d1e7df09e502da31c37 (diff) | |
| parent | 8ccf5bcc0bb3455c0d71a0e0d845ef54489bb28e (diff) | |
| download | django-rest-framework-605c1fa0a8d9b4ebcfdfa2273628739fc38f6d1e.tar.bz2 | |
Merge pull request #2397 from travelton/TweakTutorialDocs
Tweaked a few issues in the tutorial documentation.
Diffstat (limited to 'docs/tutorial/4-authentication-and-permissions.md')
| -rw-r--r-- | docs/tutorial/4-authentication-and-permissions.md | 2 |
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,) |
