From 6984104c30b6b36c3e0636649a8a77c602211049 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Tue, 15 Sep 2020 16:53:38 +0430 Subject: [PATCH] temporary changes --- apps/users/models.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/users/models.py b/apps/users/models.py index b3a6154..1445230 100644 --- a/apps/users/models.py +++ b/apps/users/models.py @@ -168,12 +168,13 @@ class User(AbstractUser): self.notify(body=str(self.otp), title='OTP ') def notify(self, body, title=None, notification_type='sms'): - send_notification.delay(phone_number=self.phone_number, - title=title, - body=body, - user_uuid=self.uuid, - notification_type=1, - ) + print('request send sms') + # send_notification.delay(phone_number=self.phone_number, + # title=title, + # body=body, + # user_uuid=self.uuid, + # notification_type=1, + # ) def __str__(self): return f"{self.pk} - {self.username}"