comments.py 379 B

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