Exemplo n.º 1
0
 def partial_update(self, request, thread_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_thread(request, thread_id, request.data))
Exemplo n.º 2
0
 def partial_update(self, request, thread_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_thread(request, thread_id, request.data))
Exemplo n.º 3
0
 def partial_update(self, request, thread_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     return Response(update_thread(request, thread_id, request.data))
Exemplo n.º 4
0
 def partial_update(self, request, thread_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     return Response(update_thread(request, thread_id, request.data))