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 ')
|
||||
|
||||
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}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue