-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🗃️ [#4815] Change submission removal limit to 0
Allowing submissions to be deleted after 0 days (i.e. on the same day)
- Loading branch information
1 parent
957b7c1
commit 58b2364
Showing
5 changed files
with
124 additions
and
12 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
src/openforms/config/migrations/0064_alter_globalconfiguration_submissions_removal_limit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Generated by Django 4.2.16 on 2024-11-11 14:08 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("config", "0063_merge_20240923_1612"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="globalconfiguration", | ||
name="all_submissions_removal_limit", | ||
field=models.PositiveIntegerField( | ||
default=90, | ||
help_text="Amount of days when all submissions will be permanently deleted", | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="all submissions removal limit", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="globalconfiguration", | ||
name="errored_submissions_removal_limit", | ||
field=models.PositiveIntegerField( | ||
default=30, | ||
help_text="Amount of days errored submissions will remain before being removed", | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="errored submission removal limit", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="globalconfiguration", | ||
name="incomplete_submissions_removal_limit", | ||
field=models.PositiveIntegerField( | ||
default=7, | ||
help_text="Amount of days incomplete submissions will remain before being removed", | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="incomplete submission removal limit", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="globalconfiguration", | ||
name="successful_submissions_removal_limit", | ||
field=models.PositiveIntegerField( | ||
default=7, | ||
help_text="Amount of days successful submissions will remain before being removed", | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="successful submission removal limit", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
src/openforms/forms/migrations/0105_alter_form_all_submissions_removal_limit_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Generated by Django 4.2.16 on 2024-11-14 09:31 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("forms", "0104_select_datatype_string"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="form", | ||
name="all_submissions_removal_limit", | ||
field=models.PositiveIntegerField( | ||
blank=True, | ||
help_text="Amount of days when all submissions of this form will be permanently deleted. Leave blank to use value in General Configuration.", | ||
null=True, | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="all submissions removal limit", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="form", | ||
name="errored_submissions_removal_limit", | ||
field=models.PositiveIntegerField( | ||
blank=True, | ||
help_text="Amount of days errored submissions of this form will remain before being removed. Leave blank to use value in General Configuration.", | ||
null=True, | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="errored submission removal limit", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="form", | ||
name="incomplete_submissions_removal_limit", | ||
field=models.PositiveIntegerField( | ||
blank=True, | ||
help_text="Amount of days incomplete submissions of this form will remain before being removed. Leave blank to use value in General Configuration.", | ||
null=True, | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="incomplete submission removal limit", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="form", | ||
name="successful_submissions_removal_limit", | ||
field=models.PositiveIntegerField( | ||
blank=True, | ||
help_text="Amount of days successful submissions of this form will remain before being removed. Leave blank to use value in General Configuration.", | ||
null=True, | ||
validators=[django.core.validators.MinValueValidator(0)], | ||
verbose_name="successful submission removal limit", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters