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