Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. REST_FRAMEWORK = {
  2. 'DEFAULT_PERMISSION_CLASSES': (
  3. 'rest_framework.permissions.IsAuthenticated',
  4. ),
  5. }
  6.  
  7. from rest_framework import permissions
  8.  
  9. class SnippetListCreateView(ListCreateAPIView):
  10. permission_classes = [
  11. permissions.IsAuthenticated
  12. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement