Mixins and Base Classes¶
Transition Base Classes¶
Mixins for transition workflows.
StatusBase¶
StateMachineMixinBase¶
-
class
django_transitions.workflow.StateMachineMixinBase[source]¶ Base class for state machine mixins.
Class attributes:
status_classmust provideTRANSITION_LABELSproperty and theget_kwargsclass method (seeStatusBase).machineis a transition machine e.g:machine = Machine( model=None, finalize_event='wf_finalize', auto_transitions=False, **status_class.get_kwargs() # noqa: C815 )
The transition events of the machine will be added as methods to the mixin.