(self, model, state_name, *args, **kwargs)
Helper function to add go to states in case a custom state separator is used.
        Args:
            model (class): The model that should be used.
            state_name (str): Name of the destination state.
Helper function to add go to states in case a custom state separator is used.
        Args:
            model (class): The model that should be used.
            state_name (str): Name of the destination state.
Helper function to add go to states in case a custom state separator is used . Args : model ( class ) : The model that should be used . state_name ( str ) : Name of the destination state .
def to_state(self, model, state_name, *args, **kwargs):
        """ Helper function to add go to states in case a custom state separator is used.
        Args:
            model (class): The model that should be used.
            state_name (str): Name of the destination state.
        """

        event = EventData(self.get_model_state(model), Event('to', self), self,
                          model, args=args, kwargs=kwargs)
        self._create_transition(getattr(model, self.model_attribute), state_name).execute(event)
def to_state ( self , model , state_name , * args , * * kwargs ) : event = EventData ( self . get_model_state ( model ) , Event ( 'to' , self ) , self , model , args = args , kwargs = kwargs ) self . _create_transition ( getattr ( model , self . model_attribute ) , state_name ) . execute ( event )