Source code for registrations.management.commands.minimiseregistrations

from django.core.management import BaseCommand

from registrations import services


[docs]class Command(BaseCommand):
[docs] def add_arguments(self, parser): parser.add_argument( "--dry-run", action="store_true", dest="dry-run", default=False, help="Dry run instead of saving data", )
[docs] def handle(self, *args, **options): services.execute_data_minimisation(options["dry-run"])