Skip to content

Commit 22622a5

Browse files
authored
Merge pull request #2399 from DemocracyClub/mnis-ids-in-csv
Add MNIS IDs and TWFY ID to CSV export
2 parents d0fa0c8 + 6067222 commit 22622a5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ynr/apps/data_exports/csv_fields.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,21 @@ def link_formatter(value, url):
280280
label=identifier.value,
281281
)
282282

283+
284+
csv_fields["mnis_id"] = CSVField(
285+
type="expr",
286+
value=F("identifiers__mnis_id"),
287+
value_group="person",
288+
label="MNIS ID",
289+
)
290+
291+
csv_fields["twfy_id"] = CSVField(
292+
type="expr",
293+
value=F("identifiers__theyworkforyou"),
294+
value_group="person",
295+
label="TheyWorkForYou ID",
296+
)
297+
283298
csv_fields["gender"] = CSVField(
284299
type="expr",
285300
value=F("person__gender"),

0 commit comments

Comments
 (0)