From d156e4c43144660995d595b1e3b8d36cd69cf8b9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 4 Dec 2021 18:44:31 +0100 Subject: [PATCH] make simpler --- InvenTree/common/notifications.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index ff5bc64a60..5dc93d4593 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -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