a2_rbac: provide default values for unused account thresholds (#60463)
This commit is contained in:
parent
173e63900d
commit
c557ec4db8
|
@ -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.'
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue