@treeio_login_required
@handle_response_format
@_process_mass_form
def service_record_index(request, response_format='html'):
 query = Q()
 if request.GET:
  query = (query & _get_filter_query(request.GET))
 service_records = Object.filter_by_request(request, ItemServicing.objects.filter(query))
 filters = FilterForm(request.user.profile, '', request.GET)
 context = _get_default_context(request)
 context.update({'service_records': service_records, 'filters': filters})
 return render_to_response('infrastructure/service_record_index', context, context_instance=RequestContext(request), response_format=response_format)

@ treeio_login_required @ handle_response_format @ _process_mass_form def service_record_index ( request , response_format = 'html' ) : query = Q ( ) if request . GET : query = ( query & _get_filter_query ( request . GET ) ) service_records = Object . filter_by_request ( request , ItemServicing . objects . filter ( query ) ) filters = FilterForm ( request . user . profile , '' , request . GET ) context = _get_default_context ( request ) context . update ( { 'service_records' : service_records , 'filters' : filters } ) return render_to_response ( 'infrastructure/service_record_index' , context , context_instance = RequestContext ( request ) , response_format = response_format )
index page: displays all items .