provider.py 379 B

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