Skip to content

Commit 41d15ba

Browse files
committed
fix: Format email template as plaintext
1 parent c85f977 commit 41d15ba

3 files changed

Lines changed: 8 additions & 22 deletions

File tree

uvdat/core/models/task_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def complete(self):
6161
for subscriber in self.subscribers.all():
6262
subject = "GeoDatalytics Task Completed"
6363
message = render_to_string(
64-
"uvdat/email_task_complete.html",
64+
"uvdat/email_task_complete.txt",
6565
{"task_name": self.name, "link": settings.UVDAT_WEB_URL},
6666
)
6767
send_mail(

uvdat/core/templates/uvdat/email_task_complete.html

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
You are receiving this email because you have requested a notification upon the completion of a task in GeoDatalytics.
2+
3+
The following Analytics Task has been completed:
4+
5+
{{ task_name }}
6+
7+
View the results at {{ link }}.

0 commit comments

Comments
 (0)