Send content of data field with Notification filter signal
This commit is contained in:
parent
e7c79578d4
commit
9d50530ca1
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ from dbsettings.functions import getValue
|
||||||
make_message = filtersignals.FilterSignal()
|
make_message = filtersignals.FilterSignal()
|
||||||
|
|
||||||
def run_filters(notification):
|
def run_filters(notification):
|
||||||
return make_message.send_robust(notification.__class__, recipient=notification.recipient, content=notification.content, app=notification.app)["content"]
|
return make_message.send_robust(notification.__class__, recipient=notification.recipient, content=notification.content, app=notification.app, data=notification.data)["content"]
|
||||||
|
|
||||||
@filtersignals.receiver(make_message, 500)
|
@filtersignals.receiver(make_message, 500)
|
||||||
def notification_placeholders(sender, **kwargs):
|
def notification_placeholders(sender, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue