def get_first_orm_bit(column):
    if not column.sources:
        return None

    return column.sources[0].split('__')[0]
Returns the first ORM path component of a field definition's declared db field.
dataset/ETHPy150Open pivotal-energy-solutions/django-datatable-view/datatableview/utils.py/get_first_orm_bit