From 606722260ba5eedfc6bef739a175f7944f2875b6 Mon Sep 17 00:00:00 2001 From: Sym Roe Date: Mon, 24 Jun 2024 22:03:56 +0100 Subject: [PATCH] Add MNIS IDs and TWFY ID to CSV export --- ynr/apps/data_exports/csv_fields.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ynr/apps/data_exports/csv_fields.py b/ynr/apps/data_exports/csv_fields.py index 44288b7d4..2a807d81e 100644 --- a/ynr/apps/data_exports/csv_fields.py +++ b/ynr/apps/data_exports/csv_fields.py @@ -280,6 +280,21 @@ def link_formatter(value, url): label=identifier.value, ) + +csv_fields["mnis_id"] = CSVField( + type="expr", + value=F("identifiers__mnis_id"), + value_group="person", + label="MNIS ID", +) + +csv_fields["twfy_id"] = CSVField( + type="expr", + value=F("identifiers__theyworkforyou"), + value_group="person", + label="TheyWorkForYou ID", +) + csv_fields["gender"] = CSVField( type="expr", value=F("person__gender"),