authenticators: clarify button description attribute (#72295)

This commit is contained in:
Valentin Deniaud 2022-12-13 10:16:43 +01:00
parent e065f40466
commit cd2a644f94
2 changed files with 4 additions and 6 deletions

View File

@ -15,9 +15,9 @@ class Migration(migrations.Migration):
name='button_description',
field=models.CharField(
blank=True,
help_text='Description will be shown on login page above login button (unless already set by theme).',
help_text='Description will be shown at the top of login block (unless already set by theme).',
max_length=256,
verbose_name='Login button description',
verbose_name='Login block description',
),
),
migrations.AddField(

View File

@ -71,12 +71,10 @@ class BaseAuthenticator(models.Model):
validators=[condition_validator],
)
button_description = models.CharField(
_('Login button description'),
_('Login block description'),
max_length=256,
blank=True,
help_text=_(
'Description will be shown on login page above login button (unless already set by theme).'
),
help_text=_('Description will be shown at the top of login block (unless already set by theme).'),
)
button_label = models.CharField(_('Login button label'), max_length=64, default=_('Login'))