#NEWLINE# @ detail_route ( methods = [ 'put' ] ) #NEWLINE# def status( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# recipient_status = request . data . get ( 'status' ) #NEWLINE# conversation_recipient = ConversationRecipient . objects . get ( deleted = False , recipient = request . user , conversation = self . get_object ( ) ) #NEWLINE# if ( recipient_status is not None ) : #NEWLINE# #INDENT# conversation_recipient . status = recipient_status #NEWLINE# conversation_recipient . save ( ) #NEWLINE# #UNINDENT# return Response ( { #NEWLINE# #INDENT# 'status' : 'Status updated' , #NEWLINE# #UNINDENT# } )