SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit db5514cf authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Filter contribs export on extra field

parent cab00aea
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,9 @@ class Command(BaseCommand): ...@@ -32,7 +32,9 @@ class Command(BaseCommand):
fieldnames = ['first_name', 'last_name', 'email_address'] fieldnames = ['first_name', 'last_name', 'email_address']
# Query # 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']: if kwargs['group']:
queryset = queryset.filter(user__groups__name=kwargs['group']) queryset = queryset.filter(user__groups__name=kwargs['group'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment