sms content

This commit is contained in:
Sayyid Hamid Mahdavi 2025-09-20 14:47:46 +03:30
parent 9fb595909e
commit bf26b01e37

View file

@ -128,7 +128,8 @@ class User(AbstractUser):
avatar = models.ImageField(null=True, blank=True, storage=MinioBackend(), upload_to=iso_date_prefix) avatar = models.ImageField(null=True, blank=True, storage=MinioBackend(), upload_to=iso_date_prefix)
gender = models.CharField(_('gender'), choices=GenderChoices.choices, blank=True, null=True) gender = models.CharField(_('gender'), choices=GenderChoices.choices, blank=True, null=True)
education_degree = models.CharField(_('education degree'), choices=EducationDegreeChoices.choices, max_length=10, null=True, blank=True) education_degree = models.CharField(_('education degree'), choices=EducationDegreeChoices.choices, max_length=10,
null=True, blank=True)
education_field = models.CharField(_('education field'), max_length=100, null=True, blank=True) education_field = models.CharField(_('education field'), max_length=100, null=True, blank=True)
birthdate = models.DateField(_('birthdate'), null=True, blank=True) birthdate = models.DateField(_('birthdate'), null=True, blank=True)
@ -228,7 +229,8 @@ class User(AbstractUser):
"\n" "\n"
f"رمزیکبارمصرف: {body}" f"رمزیکبارمصرف: {body}"
"\n" "\n"
f"code is: {body}\n{settings.SMS_OTP_SIGNITURE}") # f"code is: {body}\n"
f"{settings.SMS_OTP_SIGNITURE}")
send_sms(self.phone_number.strip('+'), message) send_sms(self.phone_number.strip('+'), message)
return return
# TODO: enable celery # TODO: enable celery