From 9b1b5574c496541c5aafe657147989aeda3088c8 Mon Sep 17 00:00:00 2001 From: "Shagbaor Agber(Pyman)" <67190277+Codewithshagbaor@users.noreply.github.com> Date: Thu, 22 Dec 2022 23:41:25 +0100 Subject: [PATCH] Final touches on Custom Message --- reminders/tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reminders/tasks.py b/reminders/tasks.py index 07dc158..498e234 100644 --- a/reminders/tasks.py +++ b/reminders/tasks.py @@ -26,9 +26,10 @@ def send_sms_reminder(appointment_id): return appointment_time = arrow.get(appointment.time, appointment.time_zone.zone) - body = 'Hi {0}. You have an appointment coming up at {1}.'.format( + body = 'Hi {0}. You have an appointment coming up at {1}. {2}'.format( appointment.name, - appointment_time.format('h:mm a') + appointment_time.format('h:mm a'), + appointment.custom_message, ) client.messages.create(