Commit 66344fd8 authored by Ian Evangelista's avatar Ian Evangelista
Browse files

replace line comment with docstring

parent 1373296b
Pipeline #170935 passed with stage
in 25 seconds
......@@ -47,13 +47,15 @@ class CommentList(
return qs
# Details of comment
class CommentDetail(
mixins.RetrieveModelMixin,
mixins.UpdateModelMixin,
mixins.DestroyModelMixin,
generics.GenericAPIView,
):
'''Details of comment
'''
queryset = Comment.objects.all()
serializer_class = CommentSerializer
permission_classes = [
......@@ -72,6 +74,10 @@ class CommentDetail(
# List of likes
class LikeList(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView):
'''Details of likes
'''
serializer_class = LikeSerializer
permission_classes = [permissions.IsAuthenticated]
......@@ -88,13 +94,15 @@ class LikeList(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericA
return Like.objects.filter(owner=self.request.user)
# Details of like
class LikeDetail(
mixins.RetrieveModelMixin,
mixins.UpdateModelMixin,
mixins.DestroyModelMixin,
generics.GenericAPIView,
):
'''Details of like
'''
queryset = Like.objects.all()
serializer_class = LikeSerializer
permission_classes = [permissions.IsAuthenticated]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment