servicetype.py 374 B

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