code: def get_column_model(name, model=None):
      
      if '.' in name:
          m, name = name.split('.')
          model = get_model(m)
  
      if model:
          return model.c.get(name), model
      else:
          return None, None
docs: get model field according to name