Signals Module
Dynamically create signals for each model so that the relevant actions can be triggered.
- action_triggers.signals.setup() None [source]
Connects signals to each model which will trigger the callback function when the signal is dispatched.
- action_triggers.signals.signal_callback(instance: Model, signal: ModelSignal, **kwargs) None [source]
Callback function to be called when a signal is triggered. The callback function will dispatch the relevant signals for the model.
- Parameters:
instance (Model) – The model instance which triggered the signal.
signal (signals.ModelSignal) – The signal which was triggered.
kwargs (Any) – Additional keyword arguments.