temporary changes
This commit is contained in:
parent
ef82852b82
commit
6984104c30
1 changed files with 7 additions and 6 deletions
|
|
@ -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}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue