12345678910 |
- from webservice_running.serializer import CommentsSerializer
- from rest_framework import viewsets, permissions
- from webservice_running.models import Comments
- class CommentsMVS(viewsets.ModelViewSet):
- queryset = Comments.objects.all()
- serializer_class = CommentsSerializer
- #permission_classes = [IsOwnerOrReadOnly]
- permission_classes = [permissions.IsAuthenticated]
|