temporary changes

This commit is contained in:
Sayyid Hamid Mahdavi 2020-09-15 16:53:38 +04:30
parent ef82852b82
commit 6984104c30

View file

@ -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}"