diff --git a/tailbone/views/master.py b/tailbone/views/master.py index 5f096561..8cc252ce 100644 --- a/tailbone/views/master.py +++ b/tailbone/views/master.py @@ -1527,7 +1527,7 @@ class MasterView(View): """ csvrow = {} for field in fields: - value = getattr(obj, field) + value = getattr(obj, field, None) csvrow[field] = '' if value is None else six.text_type(value) return csvrow @@ -1537,7 +1537,7 @@ class MasterView(View): """ csvrow = {} for field in fields: - value = getattr(row, field) + value = getattr(row, field, None) csvrow[field] = '' if value is None else six.text_type(value) return csvrow