We planned to upgrade GitLab and Mattermost to the latest version this Friday morning. Expect some downtime!

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

Honorary members are no longer included in the IBAN export

parent 9d45b2aa
......@@ -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