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. * Only admin users are able to access this view.
""" """
authentication_classes = (authentication.TokenAuthentication,) authentication_classes = (authentication.TokenAuthentication,)
permission_classes = (permissions.IsAdmin,) permission_classes = (permissions.IsAdminUser,)
def get(self, request, format=None): def get(self, request, format=None):
""" """