Changed IsAdmin -> IsAdminUser in example

This commit is contained in:
Marko Tibold 2012-10-21 16:34:50 +02:00
parent 71a93930fd
commit 65d4970bf7

View File

@ -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
[cite2]: http://www.boredomandlaziness.org/2012/05/djangos-cbvs-are-not-mistake-but.html