Пример #1
0
 def post(self, request):
     user_id = request.user.id
     article_code = request.data.get("article_code")
     content = request.data.get("content")
     comment_code, article_id = ArticleComment.add_article_comment_by_code(
         user_id=user_id, article_code=article_code, content=content)
     article_comment_add.delay(article_id=article_id)
     return Response(data={"created": comment_code})