We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92967b1 commit 4102c57Copy full SHA for 4102c57
backend/notifications/admin/views.py
@@ -15,4 +15,8 @@ def view_email_template(request, object_id):
15
16
def view_sent_email(request, object_id):
17
sent_email = cast(SentEmail, SentEmail.objects.get(id=object_id))
18
- return HttpResponse(sent_email.body)
+ return HttpResponse(
19
+ sent_email.body_file.read().decode("utf-8")
20
+ if sent_email.body_file
21
+ else sent_email.body
22
+ )
0 commit comments