Commit 0e653688 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '500-honorary-members-are-included-in-the-iban-export' into 'master'

Honorary members are no longer included in the IBAN export

Closes #500

See merge request !562
parents bb3d864a 39e5b450
......@@ -163,11 +163,12 @@ def iban_export(request):
members = Member.active_members.filter(direct_debit_authorized=True)
for member in members:
rows.append({
'name': member.get_full_name(),
'username': member.user.username,
'iban': member.bank_account
})
if (member.current_membership.type != 'honorary'):
rows.append({
'name': member.get_full_name(),
'username': member.user.username,
'iban': member.bank_account
})
response = HttpResponse(content_type='text/csv')
writer = csv.DictWriter(response, header_fields)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment