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

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