1
0

service.py 374 B

12345678910
  1. from metaservicesynced.serializer import ServiceSerializer
  2. from rest_framework import viewsets, permissions
  3. from metaservicesynced.models import Service
  4. class ServiceMVS(viewsets.ModelViewSet):
  5. queryset = Service.objects.all()
  6. serializer_class = ServiceSerializer
  7. #permission_classes = [IsOwnerOrReadOnly]
  8. permission_classes = [permissions.IsAuthenticated]