

def get_column_for_modelfield(model_field):
    ' Return the built-in Column class for a model field class. '
    while model_field.rel:
        model_field = model_field.rel.to._meta.pk
    for (ColumnClass, modelfield_classes) in COLUMN_CLASSES:
        if isinstance(model_field, tuple(ColumnClass)):
            return ColumnClass

dataset/ETHPy150Open pivotal-energy-solutions/django-datatable-view/datatableview/columns.py get_column_for_modelfield/VarMisuse@50/99 `modelfield_classes`->`ColumnClass`