Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Statemachine: state_field #9
It's not really ideal for the StateMachine class to depend on the child class to have the _sm_state field.
We should allow the user to specify their own field in the SMOptions class.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
It would also be nice to allow the user to specify what type of field is used. A lot of apps for example makes use of a IntegerField to hold the state. Others make use of a single checkbox.
Not sure if the feature I metnioned here will ever be required or implemented, but it's something to think about.