Add placeholder for contact export
This commit is contained in:
10
src/fellchensammlung/management/commands/export_contacts.py
Normal file
10
src/fellchensammlung/management/commands/export_contacts.py
Normal 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()
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user