You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using another name than state for your StateField, the TransitionCannotStart Exception raises AttributeError, because instance.state is not defined
class TransitionCannotStart(TransitionException):
def __init__(self, instance, transition):
TransitionException.__init__(self, "Transition '%s' on %s cannot start in the state '%s'" %
(transition, instance.__class__.__name__, instance.state))
The text was updated successfully, but these errors were encountered:
If you are using another name than
state
for your StateField, the TransitionCannotStart Exception raises AttributeError, becauseinstance.state
is not definedhttps://github.com/vikingco/django-states2/blob/master/django_states/exceptions.py#L46
The text was updated successfully, but these errors were encountered: