def get_column_mapping(column_raw, organization, attr_name='column_mapped'):
    from seed.utils.mapping import _get_column_names
    if not isinstance(column_raw, list):
        column_raw = [column_raw]

    cols = Column.objects.filter(
        organization=organization, column_name__in=column_raw
    )

    try:
        previous_mapping = ColumnMapping.objects.get(
            super_organization=organization,
            column_raw__in=cols,
        )

    except ColumnMapping.DoesNotExist:
        return None

    column_names = _get_column_names(previous_mapping, attr_name=attr_name)

    if previous_mapping.is_direct():
        column_names = column_names[0]

    return column_names, 100
Remove prefix
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/models.py/get_column_mapping--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/nipap-cli/nipap_cli/nipap_cli.py/remove_prefix