sms/orange: remind about SMS sending restrictions during configuration (#70595)
gitea-wip/passerelle/pipeline/head Build started... Details
gitea/passerelle/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Thomas NOËL 2022-10-24 10:28:35 +02:00 committed by Thomas NOËL
parent 0d5751d279
commit af718a1203
2 changed files with 14 additions and 2 deletions

View File

@ -56,7 +56,12 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='orangesmsgateway',
name='username',
field=models.CharField(default='', max_length=64, verbose_name='Identifier'),
field=models.CharField(
default='',
max_length=64,
verbose_name='Identifier',
help_text='Please remove any SMS sending restrictions in the Contact Everyone solution, especially on authorized sending periods.',
),
preserve_default=False,
),
]

View File

@ -44,7 +44,14 @@ def get_json(response):
class OrangeSMSGateway(SMSResource):
hide_description_fields = ['groupname']
username = models.CharField(verbose_name=_('Identifier'), max_length=64)
username = models.CharField(
verbose_name=_('Identifier'),
max_length=64,
help_text=_(
'Please remove any SMS sending restrictions in the Contact Everyone '
'solution, especially on authorized sending periods.'
),
)
password = models.CharField(verbose_name=_('Password'), max_length=64)
groupname = models.CharField(verbose_name=_('Group'), max_length=64)