add hostname to email subject/body fixes
@@ -415,7 +415,7 @@ class AutomatedTask(BaseAuditModel):
CORE = CoreSettings.objects.first()
if self.agent:
- subject = f"{self.agent.client.name}, {self.agent.site.name}, {self} Failed"
+ subject = f"{self.agent.client.name}, {self.agent.site.name}, {self.agent.hostname} - {self} Failed"
else:
subject = f"{self} Failed"
@@ -433,7 +433,7 @@ class AutomatedTask(BaseAuditModel):
CORE = CoreSettings.objects.first()
if self.agent:
- subject = f"{self.agent.client.name}, {self.agent.site.name}, {self} Failed"
+ subject = f"{self.agent.client.name}, {self.agent.site.name}, {self.agent.hostname} - {self} Failed"
else:
subject = f"{self} Failed"
