a2_rbac: provide default values for unused account thresholds (#60463)

This commit is contained in:
Paul Marillonnet 2022-01-10 17:32:19 +01:00
parent 173e63900d
commit c557ec4db8
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class Migration(migrations.Migration):
field=models.PositiveIntegerField(
blank=True,
null=True,
default=700,
validators=[
django.core.validators.MinValueValidator(
30, 'Ensure that this value is greater than 30 days, or leave blank for deactivating.'
@ -31,6 +32,7 @@ class Migration(migrations.Migration):
field=models.PositiveIntegerField(
blank=True,
null=True,
default=730,
validators=[
django.core.validators.MinValueValidator(
30, 'Ensure that this value is greater than 30 days, or leave blank for deactivating.'

View File

@ -97,6 +97,7 @@ class OrganizationalUnit(OrganizationalUnitAbstractBase):
],
null=True,
blank=True,
default=700, # a month before the two-year deletion deadline
)
clean_unused_accounts_deletion = models.PositiveIntegerField(
@ -108,6 +109,7 @@ class OrganizationalUnit(OrganizationalUnitAbstractBase):
],
null=True,
blank=True,
default=730, # two years
)
home_url = models.URLField(verbose_name=_('Home URL'), max_length=256, null=True, blank=True)