drf-fsm-transitions
drf-fsm-transitions copied to clipboard
Automatically hook your Django-FSM transitions up to Django REST Framework
If I understand correctly, this app has following unjustifiable assumptions: 1. a FSMField is called `status` (e.g. in my case I call it `state`) 2. one cannot use different identifier...
Not sure if this is helpful for you, but these are some changes I made to make drf-fsm-transitions work with DRF >= 3.8
An alternative solution to #4. Lets users provide state change views for one or more of their FSMFields.
Check permissions and conditions before performing a state change, and let an implementor calculate kwargs to be passed to the state change method. If you'd prefer these separately, then let...
django-fsm provides a method called `get_all_state_transitions` to get a list of all available transitions.