1
0

documents.py 421 B

1234567891011
  1. from django.http import HttpResponse
  2. from metaservicesynced.serializer import DocumentsSerializer
  3. from rest_framework import viewsets, permissions
  4. from metaservicesynced.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]