documents.py 401 B

1234567891011
  1. from django.http import HttpResponse
  2. from dbsynce.serializer import DocumentsSerializer
  3. from rest_framework import viewsets, permissions
  4. from dbsynce.models import Documents
  5. class DocumentsMVS(viewsets.ModelViewSet):
  6. queryset = Documents.objects.all()
  7. serializer_class = DocumentsSerializer
  8. #permission_classes = [IsOwnerOrReadOnly]
  9. permission_classes = [permissions.IsAuthenticated]