Commit 39e5b450 authored by Bram in 't Zandt's avatar Bram in 't Zandt
Browse files

Honorary members are no longer included in the IBAN export

parent 9d45b2aa
...@@ -163,11 +163,12 @@ def iban_export(request): ...@@ -163,11 +163,12 @@ def iban_export(request):
members = Member.active_members.filter(direct_debit_authorized=True) members = Member.active_members.filter(direct_debit_authorized=True)
for member in members: for member in members:
rows.append({ if (member.current_membership.type != 'honorary'):
'name': member.get_full_name(), rows.append({
'username': member.user.username, 'name': member.get_full_name(),
'iban': member.bank_account 'username': member.user.username,
}) 'iban': member.bank_account
response = HttpResponse(content_type='text/csv') response = HttpResponse(content_type='text/csv')
writer = csv.DictWriter(response, header_fields) 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