Commit 48ddcb53 authored by Bram in 't Zandt's avatar Bram in 't Zandt
Browse files

views.py now uses the new payment field instead of the old paid field

parent bb3d864a
......@@ -120,7 +120,10 @@ def export(request, event_id):
'date cancelled': cancelled,
}
if event.price > 0:
data['paid'] = _('Yes') if registration.paid else ''
if (registration.payment != 'no_payment'):
data['paid'] = _('Yes')
else:
data['paid'] = ''
data.update({field['field'].name: field['value'] for field in
registration.registration_information()})
......
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