Skip to content

Commit

Permalink
Merge pull request #62 from xzzy/master
Browse files Browse the repository at this point in the history
Add ResponsibleGroupAdvisoryEmail email list to notifications
  • Loading branch information
xzzy authored Feb 5, 2024
2 parents 2c567ae + bf16fd7 commit d0757bd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion appmonitor/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,11 @@ def save(self, *args, **kwargs):
to_addresses.append(notification.email)
t.send(to_addresses=to_addresses, context={"advisory" : self,"settings": settings, 'pp': pp}, headers={"Reply-To": settings.IT_CHECKS_REPLY_TO_EMAIL})


if pp.platform.group_responsible:
for notification in ResponsibleGroupAdvisoryEmail.objects.filter(id=pp.platform.group_responsible.id,active=True):
print ("Preparing to "+notification.email)
to_addresses.append(notification.email)
t.send(to_addresses=to_addresses, context={"advisory" : self,"settings": settings, 'pp': pp}, headers={"Reply-To": settings.IT_CHECKS_REPLY_TO_EMAIL})



0 comments on commit d0757bd

Please sign in to comment.