Skip to content
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

Django 1.9.4: demo model fails, StateMachine has no attribute 'states' #87

Open
AlexPython opened this issue Apr 21, 2016 · 1 comment

Comments

@AlexPython
Copy link

Trying to run the the demo with Purchase model from readme.
python manange.py makemigrations ends with error:

File "django_states\machine.py", line 275, in get_state_choices
return [(k, cls.states[k].description) for k in cls.states.keys()] AttributeError: type object 'PurchaseSateMachine' has no attribute 'states'

Aren't class some_state (StateDefinition) inside class PurchaseStateMachine supposed to be states?

@treyd
Copy link

treyd commented Nov 10, 2017

I have this same problem in django 1.11.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants