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_class
must provideTRANSITION_LABELS
property and theget_kwargs
class method (seeStatusBase
).machine
is 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.