personinfo.py 389 B

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