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