From e0462c2bab9dccaf681ebda0dce71a0482c1012c Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 02:23:28 +0100 Subject: [PATCH] do not run through template classes --- InvenTree/common/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index a0cff721bf..aa58b2e5c8 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -115,7 +115,7 @@ def trigger_notifaction(obj, entry_name=None, obj_ref='pk', receivers=None, rece # collect possible methods delivery_methods = inheritors(NotificationMethod) - for method in delivery_methods: + for method in [a for a in delivery_methods if a not in [SingleNotificationMethod, BulkNotificationMethod]]: logger.info(f"Triggering method '{method.method_name}'") try: deliver_notification(method, obj, entry_name, receivers, notification_context)