wip: add missing migration to authenticators squash migrations

This commit is contained in:
Benjamin Dauvergne 2024-02-27 18:08:07 +01:00
parent 50e5a0b22f
commit b472cd1f8d
1 changed files with 7 additions and 6 deletions

View File

@ -57,9 +57,10 @@ class Migration(migrations.Migration):
models.CharField(
blank=True,
default='',
help_text='Django template controlling authenticator display. For example, "\'backoffice\' in login_hint or '
'remote_addr == \'1.2.3.4\'" would hide the authenticator from normal users except if they come from the specified IP '
'address. Available variables include service_ou_slug, service_slug, remote_addr, login_hint and headers.',
help_text='Condition controlling authenticator display. For example, "\'backoffice\' in '
'login_hint or remote_addr == \'1.2.3.4\'" would hide the authenticator from normal users '
'except if they come from the specified IP address. Available variables include '
'service_ou_slug, service_slug, remote_addr, login_hint and headers.',
max_length=1024,
validators=[authentic2.utils.evaluate.condition_validator],
verbose_name='Show condition',
@ -109,9 +110,9 @@ class Migration(migrations.Migration):
models.CharField(
blank=True,
default='',
help_text='Django template controlling role attribution. For example, "\'Admin\' in attributes.groups" will '
'attribute the role if attributes has "groups" attribute containing the value "Admin". Variable "attributes" contains '
'the attributes received from the identity provider.If condition is not satisfied the role will be removed.',
help_text='Django condition controlling role attribution. For example, "\'Admin\' in attributes.groups" '
'will attribute the role if attributes has "groups" attribute containing the value "Admin". Variable "attributes" '
'contains the attributes received from the identity provider. If condition is not satisfied the role will be removed.',
max_length=1024,
validators=[authentic2.utils.template.validate_condition_template],
verbose_name='Condition',