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