Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
users: add an option "no_information" for gender
Browse files Browse the repository at this point in the history
* Part of rero#3168.

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
PascalRepond committed Jan 5, 2023
1 parent e4c6a94 commit fa2e085
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rero_ils/modules/loans/logs/api.py
Original file line number Diff line number Diff line change
@@ -195,7 +195,7 @@ def _get_patron_data(cls, patron_pid):
'type': patron_type['name'] if patron_type else None,
'age': patron.age,
'postal_code': patron.user.profile.postal_code,
'gender': patron.user.profile.gender or 'other',
'gender': patron.user.profile.gender or 'no_information',
'pid': patron.pid,
'hashed_pid': hashed_pid
}
7 changes: 6 additions & 1 deletion rero_ils/modules/users/jsonschemas/users/user-v0.0.1.json
Original file line number Diff line number Diff line change
@@ -81,7 +81,8 @@
"enum": [
"male",
"female",
"other"
"other",
"no_information"
],
"form": {
"options": [
@@ -96,6 +97,10 @@
{
"label": "other",
"value": "other"
},
{
"label": "no_information",
"value": "no_information"
}
]
}

0 comments on commit fa2e085

Please sign in to comment.