Coverage for website/registrations/management/commands/minimiseregistrations.py: 100.00%
7 statements
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
1from django.core.management import BaseCommand
3from registrations import services
6class Command(BaseCommand):
7 """This command needs to be executed periodically to remove all data that is no longer necessary and can be removed."""
9 def add_arguments(self, parser):
10 parser.add_argument(
11 "--dry-run",
12 action="store_true",
13 dest="dry-run",
14 default=False,
15 help="Dry run instead of saving data",
16 )
18 def handle(self, *args, **options):
19 services.execute_data_minimisation(options["dry-run"])