code: def _fieldnames_to_colnames(model_cls, fieldnames):
          
          get_field = model_cls._meta.get_field
          fields = map(get_field, fieldnames)
          return {f.column for f in fields}
docs: Get the names of columns referenced by the given model fields.