client.py 349 B

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