code: def _collect_headers(self):
          
          res = []
  
          for prop in self.get_sorted_columns():
  
              main_infos = self._get_prop_infos(prop)
  
              if self._is_excluded(prop, main_infos):
                  continue
  
              if isinstance(prop, RelationshipProperty):
                  main_infos = self._collect_relationship(main_infos, prop, res)
  
                  if not main_infos:
                      # If still no success, we forgot this one
                      print("Maybe there's missing some informations \
  about a relationship")
                      continue
              else:
                  main_infos = self._merge_many_to_one_field_from_fkey(
                      main_infos, prop, res
                  )
                  if not main_infos:
                      continue
  
              if isinstance(main_infos, (list, tuple)):
                  # In case _collect_relationship returned a list
                  res.extend(main_infos)
              else:
                  res.append(main_infos)
          return res
docs: Collect headers from the models attribute info col