@handle_response_format
@treeio_login_required
def index_categories(request, response_format='html'):
 transactions = Object.filter_by_request(request, Transaction.objects)
 liabilities = Object.filter_by_request(request, Liability.objects)
 categories = Object.filter_by_request(request, Category.objects)
 return render_to_response('finance/index_categories', {'categories': categories, 'transactions': transactions, 'liabilities': liabilities}, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def index_categories ( request , response_format = 'html' ) : transactions = Object . filter_by_request ( request , Transaction . objects ) liabilities = Object . filter_by_request ( request , Liability . objects ) categories = Object . filter_by_request ( request , Category . objects ) return render_to_response ( 'finance/index_categories' , { 'categories' : categories , 'transactions' : transactions , 'liabilities' : liabilities } , context_instance = RequestContext ( request ) , response_format = response_format )
knowledge base categories page .