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