Skip to content

Commit

Permalink
Merge pull request #1584 from prabhatsuman/latest_staging
Browse files Browse the repository at this point in the history
notification error in gad-2 resolved
  • Loading branch information
prabhatsuman authored Apr 27, 2024
2 parents e33a503 + a2615b5 commit 69b987d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion FusionIIIT/notification/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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)

0 comments on commit 69b987d

Please sign in to comment.