def _normalize(val):
    if isinstance(val, bool):
        return 'on' if val else 'off'
    return str(val).lower()
Issue UPDATE statements on behalf of a relationship() which
dataset/ETHPy150Open saltstack/salt/salt/modules/freebsdports.py/_normalize--crossover with--dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/orm/persistence.py/post_update