12345678910 |
- from dbsynce.serializer import ResourceSerializer
- from rest_framework import viewsets, permissions
- from dbsynce.models import Resource
- class ResourceMVS(viewsets.ModelViewSet):
- queryset = Resource.objects.all()
- serializer_class = ResourceSerializer
- #permission_classes = [IsOwnerOrReadOnly]
- permission_classes = [permissions.IsAuthenticated]
|