feat: Add option to mask e-mails and phone numbers

This is a prerequisite to do tests on DEv and UAT systems
This commit is contained in:
2025-08-01 20:28:51 +02:00
parent 62491b84c1
commit 39a098af8e
3 changed files with 49 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
from django.core.management import BaseCommand
from fellchensammlung.tools.admin import mask_organization_contact_data
class Command(BaseCommand):
help = 'Mask e-mail addresses and phone numbers of organizations for testing purposes.'
def add_arguments(self, parser):
parser.add_argument("domain", type=str)
def handle(self, *args, **options):
domain = options["domain"]
mask_organization_contact_data(domain)