diff --git a/scipost/management/commands/export_contributors.py b/scipost/management/commands/export_contributors.py index 889698b316759dc4055a850194ecece0878f4de4..153ace0457f0ce289e232cecbe259e0a62933075 100644 --- a/scipost/management/commands/export_contributors.py +++ b/scipost/management/commands/export_contributors.py @@ -32,7 +32,9 @@ class Command(BaseCommand): fieldnames = ['first_name', 'last_name', 'email_address'] # Query - queryset = Contributor.objects.filter(user__is_active=True, status=CONTRIBUTOR_NORMAL) + queryset = Contributor.objects.filter(user__is_active=True, + status=CONTRIBUTOR_NORMAL, + accepts_SciPost_emails=True) if kwargs['group']: queryset = queryset.filter(user__groups__name=kwargs['group'])