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): ...@@ -159,9 +159,12 @@ class PaymentAdmin(admin.ModelAdmin):
payment.processing_date, payment.processing_date,
payment.amount, payment.amount,
payment.get_type_display(), payment.get_type_display(),
payment.processed_by.get_full_name(), payment.processed_by.get_full_name()
payment.paid_by.pk, if payment.processed_by else '-',
payment.paid_by.get_full_name(), payment.paid_by.pk
if payment.paid_by else '-',
payment.paid_by.get_full_name()
if payment.paid_by else '-',
payment.notes payment.notes
]) ])
return response return response
......
Supports Markdown
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