sqlExport: Change "For"->"Event/Form Name" header name in transactions

at some point MembershipWorks changed the header in the CSV export
This commit is contained in:
Adam Goldsmith 2020-05-07 01:00:21 -04:00
parent af0584651c
commit 50952bdb46

View File

@ -225,7 +225,11 @@ class Transaction(BaseModel):
phone = TextField(column_name="Phone", null=True)
email = TextField(column_name="Email", null=True)
_csv_headers_override = {"_dp": "timestamp", "Transaction Type": "type"}
_csv_headers_override = {
"_dp": "timestamp",
"Transaction Type": "type",
"Event/Form Name": "for_",
}
@classmethod
def from_csv_dict(cls, data):