コード例 #1
0
ファイル: views.py プロジェクト: truonglx1/lms
 def destroy(self, request, comment_id):
     """
     Implements the DELETE method for the instance endpoint as described in
     the class docstring
     """
     delete_comment(request, comment_id)
     return Response(status=204)
コード例 #2
0
ファイル: views.py プロジェクト: ahmadiga/min_edx
 def destroy(self, request, comment_id):
     """
     Implements the DELETE method for the instance endpoint as described in
     the class docstring
     """
     delete_comment(request, comment_id)
     return Response(status=204)