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