@handle_response_format
@treeio_login_required
def asset_view(request, asset_id, response_format='html'):
 asset = get_object_or_404(Asset, pk=asset_id)
 return render_to_response('finance/asset_view', {'asset': asset}, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def asset_view ( request , asset_id , response_format = 'html' ) : asset = get_object_or_404 ( Asset , pk = asset_id ) return render_to_response ( 'finance/asset_view' , { 'asset' : asset } , context_instance = RequestContext ( request ) , response_format = response_format )
single transaction view page .