django-fsm icon indicating copy to clipboard operation
django-fsm copied to clipboard

Validate source and target states against model "choices"

Open pakal opened this issue 5 years ago • 0 comments

(minor feature request) It seems that one can declare transitions that arrive to states that are not values listed in FSMField "choices" parameter. Always using enums here prevents most of the trouble, but wouldn't it be feasible to ensure, at app loading, that all transitions are valid with regards to this list of choices ?

pakal avatar Jun 03 '19 14:06 pakal