'Default filters for model'

def get_query(self):

    return super(DagModelView, self).get_query().filter(or_(models.DagModel.is_active, models.DagModel.is_paused)).filter((~ models.DagModel.is_subdag))
