예제 #1
0
파일: views.py 프로젝트: gopinath81/vmss
 def partial_update(self, request, comment_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     if request.content_type != MergePatchParser.media_type:
         raise UnsupportedMediaType(request.content_type)
     return Response(update_comment(request, comment_id, request.data))
예제 #2
0
 def partial_update(self, request, comment_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     if request.content_type != MergePatchParser.media_type:
         raise UnsupportedMediaType(request.content_type)
     return Response(update_comment(request, comment_id, request.data))
예제 #3
0
파일: views.py 프로젝트: truonglx1/lms
 def partial_update(self, request, comment_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     return Response(update_comment(request, comment_id, request.data))
예제 #4
0
파일: views.py 프로젝트: ahmadiga/min_edx
 def partial_update(self, request, comment_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     return Response(update_comment(request, comment_id, request.data))