-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transition with multiple from_state #55
Comments
I have the same issue. Apparently, state groups cannot be used as "from_state". Transitions that are defined with the help of state groups do not show in the list of possible transitions. I found the solution. Multiple from states have been added a while ago: Example: class start(StateTransition):
from_states = 'created', 'reset'
to_state = 'started'
description = 'Start the container' |
- The model has a `purchase_state` (not `state`) - Adds example of `from_states` (fixes vikingco#55)
- The model has a `purchase_state` (not `state`) - Adds example of `from_states` (fixes vikingco#55)
Closing |
From what I understand about this package it seems that if I have a state that can be transitioned to from multiple other states I would need to have an individual transition for each combinations of
from_state
andto_state
.For example I have a
deleted
stated that can be transition to from eithernew
ordraft
. Is there a better way other than one transition per pair of states?The text was updated successfully, but these errors were encountered: