Commit 700ec21f authored by Joren Vrancken's avatar Joren Vrancken
Browse files

Merge branch 'fix/payments-export' into 'master'

Fix NoneType error in payments csv export

See merge request !1169
parents 8ac789cc fc9a8938
......@@ -159,9 +159,12 @@ class PaymentAdmin(admin.ModelAdmin):
payment.processing_date,
payment.amount,
payment.get_type_display(),
payment.processed_by.get_full_name(),
payment.paid_by.pk,
payment.paid_by.get_full_name(),
payment.processed_by.get_full_name()
if payment.processed_by else '-',
payment.paid_by.pk
if payment.paid_by else '-',
payment.paid_by.get_full_name()
if payment.paid_by else '-',
payment.notes
])
return response
......
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