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