You could retrieve `target_model` while avoiding creating a an unnecessary `list` and `dict`.

```python
for seen_model, seen_alias in seen_models.items():
    if seen_model and seen_alias == alias:
        ancestor_link = seen_model._meta.get_ancestor_link(model)
        if ancestor_link:
            column = ancestor_link.column
        break
```