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 ') self.notify(body=str(self.otp), title='OTP ')
def notify(self, body, title=None, notification_type='sms'): def notify(self, body, title=None, notification_type='sms'):
send_notification.delay(phone_number=self.phone_number, print('request send sms')
title=title, # send_notification.delay(phone_number=self.phone_number,
body=body, # title=title,
user_uuid=self.uuid, # body=body,
notification_type=1, # user_uuid=self.uuid,
) # notification_type=1,
# )
def __str__(self): def __str__(self):
return f"{self.pk} - {self.username}" return f"{self.pk} - {self.username}"