From 9fb595909e45b7d657d3cc020a47e79144700980 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Sat, 20 Sep 2025 14:33:33 +0330 Subject: [PATCH] sms content --- apps/users/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/users/models.py b/apps/users/models.py index 9795a1d..0f39a67 100644 --- a/apps/users/models.py +++ b/apps/users/models.py @@ -224,7 +224,11 @@ class User(AbstractUser): self.notify(body=str(self.otp), title='OTP') def notify(self, body, title=None, notification_type='sms'): - message = f"Your Winsoo code is: {body}\n{settings.SMS_OTP_SIGNITURE}" + message = ("وینسو" + "\n" + f"رمزیکبارمصرف: {body}" + "\n" + f"code is: {body}\n{settings.SMS_OTP_SIGNITURE}") send_sms(self.phone_number.strip('+'), message) return # TODO: enable celery