mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make simpler
This commit is contained in:
parent
2413119cc1
commit
d156e4c431
@ -144,11 +144,6 @@ def trigger_notifaction(obj, category=None, obj_ref='pk', targets=None, target_f
|
||||
"""
|
||||
Send out an notification
|
||||
"""
|
||||
|
||||
# Set defaults
|
||||
if not category:
|
||||
category = obj._meta.modelname
|
||||
|
||||
# Resolve objekt reference
|
||||
obj_ref_value = getattr(obj, obj_ref)
|
||||
# Try with some defaults
|
||||
|
Loading…
Reference in New Issue
Block a user