Skip to content

Commit

Permalink
Merge pull request #2399 from DemocracyClub/mnis-ids-in-csv
Browse files Browse the repository at this point in the history
Add MNIS IDs and TWFY ID to CSV export
  • Loading branch information
symroe authored Jun 25, 2024
2 parents d0fa0c8 + 6067222 commit 22622a5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ynr/apps/data_exports/csv_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 22622a5

Please sign in to comment.