1234567891011 |
- from django.http import HttpResponse
- from dbsynce.serializer import DocumentsSerializer
- from rest_framework import viewsets, permissions
- from dbsynce.models import Documents
- class DocumentsMVS(viewsets.ModelViewSet):
- queryset = Documents.objects.all()
- serializer_class = DocumentsSerializer
- #permission_classes = [IsOwnerOrReadOnly]
- permission_classes = [permissions.IsAuthenticated]
|