Commit 65d4970b by Marko Tibold

Changed IsAdmin -> IsAdminUser in example

parent 71a93930
...@@ -27,7 +27,7 @@ For example: ...@@ -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):
""" """
...@@ -123,4 +123,4 @@ REST framework also gives you to work with regular function based views... ...@@ -123,4 +123,4 @@ REST framework also gives you to work with regular function based views...
**[TODO]** **[TODO]**
[cite]: http://reinout.vanrees.org/weblog/2011/08/24/class-based-views-usage.html [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
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment