relationship.py 399 B

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