

def __new__(cls, name, bases, attrs):
    new_class = super(ColumnMetaclass, cls).__new__(cls, name, bases, attrs)
    if new_class.model_field_class:
        COLUMN_CLASSES.insert(0, (new_class, [new_class.model_field_class]))
        if new_class.handles_field_classes:
            COLUMN_CLASSES.insert(0, (new_class, new_class.handles_field_classes))
    return new_class

dataset/ETHPy150Open pivotal-energy-solutions/django-datatable-view/datatableview/columns.py ColumnMetaclass.__new__/original