do not run through template classes

This commit is contained in:
Matthias 2021-12-02 02:23:28 +01:00
parent 916ef0d6c4
commit e0462c2bab
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

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