@handle_response_format
@treeio_login_required
def index_assets(request, response_format='html'):
 if request.GET:
  query = _get_filter_query(Asset, request.GET)
 else:
  query = Q()
 filters = AssetFilterForm(request.user.profile, 'title', request.GET)
 assets = Object.filter_by_request(request, Asset.objects.filter(query), mode='r')
 return render_to_response('finance/index_assets', {'assets': assets, 'filters': filters}, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required def index_assets ( request , response_format = 'html' ) : if request . GET : query = _get_filter_query ( Asset , request . GET ) else : query = Q ( ) filters = AssetFilterForm ( request . user . profile , 'title' , request . GET ) assets = Object . filter_by_request ( request , Asset . objects . filter ( query ) , mode = 'r' ) return render_to_response ( 'finance/index_assets' , { 'assets' : assets , 'filters' : filters } , context_instance = RequestContext ( request ) , response_format = response_format )
index_assets page: displays all assets .