12345678910 |
- from dbsynce.serializer import RelationshipSerializer
- from rest_framework import viewsets, permissions
- from dbsynce.models import Relationship
- class RelationshipMVS(viewsets.ModelViewSet):
- queryset = Relationship.objects.all()
- serializer_class = RelationshipSerializer
- #permission_classes = [IsOwnerOrReadOnly]
- permission_classes = [permissions.IsAuthenticated]
|