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( ...@@ -47,13 +47,15 @@ class CommentList(
return qs return qs
# Details of comment
class CommentDetail( class CommentDetail(
mixins.RetrieveModelMixin, mixins.RetrieveModelMixin,
mixins.UpdateModelMixin, mixins.UpdateModelMixin,
mixins.DestroyModelMixin, mixins.DestroyModelMixin,
generics.GenericAPIView, generics.GenericAPIView,
): ):
'''Details of comment
'''
queryset = Comment.objects.all() queryset = Comment.objects.all()
serializer_class = CommentSerializer serializer_class = CommentSerializer
permission_classes = [ permission_classes = [
...@@ -72,6 +74,10 @@ class CommentDetail( ...@@ -72,6 +74,10 @@ class CommentDetail(
# List of likes # List of likes
class LikeList(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView): class LikeList(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView):
'''Details of likes
'''
serializer_class = LikeSerializer serializer_class = LikeSerializer
permission_classes = [permissions.IsAuthenticated] permission_classes = [permissions.IsAuthenticated]
...@@ -88,13 +94,15 @@ class LikeList(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericA ...@@ -88,13 +94,15 @@ class LikeList(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericA
return Like.objects.filter(owner=self.request.user) return Like.objects.filter(owner=self.request.user)
# Details of like
class LikeDetail( class LikeDetail(
mixins.RetrieveModelMixin, mixins.RetrieveModelMixin,
mixins.UpdateModelMixin, mixins.UpdateModelMixin,
mixins.DestroyModelMixin, mixins.DestroyModelMixin,
generics.GenericAPIView, generics.GenericAPIView,
): ):
'''Details of like
'''
queryset = Like.objects.all() queryset = Like.objects.all()
serializer_class = LikeSerializer serializer_class = LikeSerializer
permission_classes = [permissions.IsAuthenticated] 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