@handle_response_format
@treeio_login_required
def receivable_view(request, receivable_id, response_format='html'):
 receivable = get_object_or_404(Liability, pk=receivable_id)
 transactions = receivable.transaction_set.all()
 return render_to_response('finance/receivable_view', {'liability': receivable, 'transactions': transactions}, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def receivable_view ( request , receivable_id , response_format = 'html' ) : receivable = get_object_or_404 ( Liability , pk = receivable_id ) transactions = receivable . transaction_set . all ( ) return render_to_response ( 'finance/receivable_view' , { 'liability' : receivable , 'transactions' : transactions } , context_instance = RequestContext ( request ) , response_format = response_format )
single receivable view page .