Created
July 23, 2014 17:01
-
-
Save bogsio/3ef56b2db46d9ce9829a to your computer and use it in GitHub Desktop.
TPT2 - Adding authorization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TodoListResource(ModelResource): | |
| class Meta: | |
| authentication = SessionAuthentication() | |
| authorization = AuthorizationByUser() | |
| queryset = TodoList.objects.all() | |
| resource_name = 'list' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment