From 916ef0d6c4fcabb3c3541ec57ab397833545e34f Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 01:26:30 +0100 Subject: [PATCH] add receiver to single send metod --- InvenTree/common/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index 8509ea50cb..a0cff721bf 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -39,7 +39,7 @@ class NotificationMethod: class SingleNotificationMethod(NotificationMethod): - def send(self, context): + def send(self, receiver, context): raise NotImplementedError('The `send` method must be overriden!') @@ -139,7 +139,7 @@ def deliver_notification(cls: NotificationMethod, obj, entry_name: str, receiver elif 'send' in method: for rec in method.recipiends: - method.send(notification_context) + method.send(rec, notification_context) else: raise NotImplementedError('No delivery method found')