2
0
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:
Oliver
2022-01-08 09:07:27 +11:00
parent a604d85f0f
commit 04d25a60b0
8 changed files with 116 additions and 9 deletions

View File

@ -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: