From bf26b01e3786886e5fbe0c89dd720fb23a5c3d89 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Sat, 20 Sep 2025 14:47:46 +0330 Subject: [PATCH] sms content --- apps/users/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/users/models.py b/apps/users/models.py index 0f39a67..ad9062f 100644 --- a/apps/users/models.py +++ b/apps/users/models.py @@ -128,7 +128,8 @@ class User(AbstractUser): 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) - 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) birthdate = models.DateField(_('birthdate'), null=True, blank=True) @@ -228,7 +229,8 @@ class User(AbstractUser): "\n" f"رمزیکبارمصرف: {body}" "\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) return # TODO: enable celery