Add placeholder for contact export

This commit is contained in:
2025-06-23 17:23:12 +02:00
parent dfeb88f980
commit 1ba44cdd67
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
from django.core.management import BaseCommand
from fellchensammlung.tools.admin import export_orgs_as_vcf
class Command(BaseCommand):
help = 'Export organizations with phone number as contacts in vcf format'
def handle(self, *args, **options):
export_orgs_as_vcf()

View File

@@ -112,3 +112,8 @@ def dedup_locations():
# Already deleted as a duplicate
continue
dedup_location(location, destructive=True)
def export_orgs_as_vcf():
rescue_orgs = RescueOrganization.objects.filter(phone_number__isnull=False)