@register.inclusion_tag(u'admin/change_list_results.html')
def result_list(cl):
 headers = list(result_headers(cl))
 num_sorted_fields = 0
 for h in headers:
  if (h[u'sortable'] and h[u'sorted']):
   num_sorted_fields += 1
 return {u'cl': cl, u'result_hidden_fields': list(result_hidden_fields(cl)), u'result_headers': headers, u'num_sorted_fields': num_sorted_fields, u'results': list(results(cl))}

@ register . inclusion_tag ( u'admin/change_list_results.html' ) def result_list ( cl ) : headers = list ( result_headers ( cl ) ) num_sorted_fields = 0 for h in headers : if ( h [ u'sortable' ] and h [ u'sorted' ] ) : num_sorted_fields += 1 return { u'cl' : cl , u'result_hidden_fields' : list ( result_hidden_fields ( cl ) ) , u'result_headers' : headers , u'num_sorted_fields' : num_sorted_fields , u'results' : list ( results ( cl ) ) }
displays the headers and data list together .