code: def get_list_header(self):
          
          result = []
          for field_name in self.get_fields():
              item = {}
              if isinstance(field_name, tuple):
                  # custom property that is not a field of the model
                  item["name"] = field_name[0]
                  item["label"] = field_name[1]
              else:
                  item["name"] = field_name
                  item["label"] = field_name.title()
              if item["name"] in self.get_ordering_fields():
                  item["order_url"], item["order_direction"] = self.ordering_url(
                      item["name"]
                  )
              result.append(item)
  
          return result
docs: Creates a list of dictionaries with the field names, labels,
          field links, field css classes, order_url and order_direction,
          this simplifies the creation of a table in a template.