def get_volumes(self):

        if self.volumes:
            volumes = []
            for v in self.volumes:
                volumes.extend(v.get_volumes())
            volumes.append(self)
            return volumes
        else:
            return [self]
Return column index by
dataset/ETHPy150Open ralphje/imagemounter/imagemounter/volume.py/Volume.get_volumes--crossover with--dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/model/base.py/BaseModelView._get_column_by_idx