From a2615b5f2fe81bb6071ef6892b4db7645a7faf86 Mon Sep 17 00:00:00 2001 From: prabhatsuman Date: Sat, 27 Apr 2024 13:40:37 +0530 Subject: [PATCH] notification error in gad-2 resolved --- FusionIIIT/notification/views.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/FusionIIIT/notification/views.py b/FusionIIIT/notification/views.py index f57ffe54c..ca732a7b7 100644 --- a/FusionIIIT/notification/views.py +++ b/FusionIIIT/notification/views.py @@ -564,4 +564,17 @@ def otheracademic_notif(sender, recipient, type, otheracademic_id,student,messag verb = message description = otheracademic_id - notify.send(sender=sender, recipient=recipient, url=url, module=module, verb=verb,description=description) \ No newline at end of file + notify.send(sender=sender, recipient=recipient, url=url, module=module, verb=verb,description=description) +def iwd_notif(sender,recipient,type): + module= 'iwdModuleV2' + url= 'iwdModuleV2:iwdModuleV2' + verb="" + if type == "file_forward": + verb= "file forwarded from " + sender.username+"." + if type == "Request_added": + verb= "Request added by "+ sender.username + "." + if type == "Request_approved": + verb = "Request approved by " + sender.username + "." + if type == "Request_rejected": + verb = "Request rejected by " + sender.username + "." + notify.send(sender=sender,recipient=recipient,url=url,module=module,verb=verb) \ No newline at end of file