From 1b545c499aa74f2d1b263c2791bedd77aec03359 Mon Sep 17 00:00:00 2001 From: Noel Rignon Date: Mon, 14 Sep 2020 11:11:04 -0400 Subject: [PATCH] fix loading json automatic emails --- retirement/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retirement/services.py b/retirement/services.py index 72dbf6f7..5b42d69a 100644 --- a/retirement/services.py +++ b/retirement/services.py @@ -360,7 +360,7 @@ def send_automatic_email(user, retreat, email): end_time = end_time.astimezone(pytz.timezone('US/Eastern')) context = { - 'CUSTOM': json.load(email.context), + 'CUSTOM': json.loads(email.context), 'USER_FIRST_NAME': user.first_name, 'USER_LAST_NAME': user.last_name, 'USER_EMAIL': user.email,