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