diff options
| author | Marko Tibold | 2012-10-21 16:34:50 +0200 |
|---|---|---|
| committer | Marko Tibold | 2012-10-21 16:34:50 +0200 |
| commit | 65d4970bf71d31669f10dc0cecd4a2a00acd7393 (patch) | |
| tree | d9228a3fe855ac0c4ab4cb7be579415e3b52627a /docs/api-guide/views.md | |
| parent | 71a93930fd4df7a1f5f92c67633b813a26a5e938 (diff) | |
| download | django-rest-framework-65d4970bf71d31669f10dc0cecd4a2a00acd7393.tar.bz2 | |
Changed IsAdmin -> IsAdminUser in example
Diffstat (limited to 'docs/api-guide/views.md')
| -rw-r--r-- | docs/api-guide/views.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/views.md b/docs/api-guide/views.md index 77349252..e3fbadb2 100644 --- a/docs/api-guide/views.md +++ b/docs/api-guide/views.md @@ -27,7 +27,7 @@ For example: * Only admin users are able to access this view. """ authentication_classes = (authentication.TokenAuthentication,) - permission_classes = (permissions.IsAdmin,) + permission_classes = (permissions.IsAdminUser,) def get(self, request, format=None): """ @@ -123,4 +123,4 @@ REST framework also gives you to work with regular function based views... **[TODO]** [cite]: http://reinout.vanrees.org/weblog/2011/08/24/class-based-views-usage.html -[cite2]: http://www.boredomandlaziness.org/2012/05/djangos-cbvs-are-not-mistake-but.html
\ No newline at end of file +[cite2]: http://www.boredomandlaziness.org/2012/05/djangos-cbvs-are-not-mistake-but.html |
