def transition(obj, *args, **kwargs):
    from .models import System
    return System.get(obj).transition(*args, **kwargs)
Adds a given state to the state machine.
dataset/ETHPy150Open chop-dbhi/django-sts/sts/shortcuts.py/transition--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/common/fsm.py/FSM.add_state