Verified Commit fc9a8938 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix NoneType error in payments csv export

parent 11fc3db3
......@@ -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