Skip to content

Commit

Permalink
makes preferred_name field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopicchio committed Sep 19, 2023
1 parent 2fad5a3 commit 40fe3a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/peoplefinder/forms/profile_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(self, *args, **kwargs):
self.fields["preferred_first_name"].label + " (optional)"
)
self.fields["preferred_first_name"].label = ""
self.fields["preferred_first_name"].required = False

last_name_label = self.fields["last_name"].label
self.fields["last_name"].label = ""
Expand Down

0 comments on commit 40fe3a6

Please sign in to comment.