mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Adds sample plugin which responds to triggered events
- Adds some example trigger events for the "Part" model
This commit is contained in:
@ -189,10 +189,10 @@ class EventMixin:
|
||||
which provide pairs of 'event':'function'
|
||||
|
||||
Notes:
|
||||
|
||||
|
||||
Events are called by name, and based on the django signal nomenclature,
|
||||
e.g. 'part.pre_save'
|
||||
|
||||
|
||||
Receiving functions must be prototyped to match the 'event' they receive.
|
||||
|
||||
Example:
|
||||
|
Reference in New Issue
Block a user