mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Logic to update label
This commit is contained in:
parent
18b7c17aad
commit
f849895897
4 changed files with 36 additions and 4 deletions
|
@ -93,4 +93,7 @@ class FinishSetupProfileForm(UserProfileForm):
|
|||
self.fields["title"].label = "Title or role in your organization"
|
||||
|
||||
# Define the "full_name" value
|
||||
self.fields["full_name"].initial = self.instance.get_formatted_name()
|
||||
full_name = None
|
||||
if self.instance.first_name and self.instance.last_name:
|
||||
full_name = self.instance.get_formatted_name(return_unknown_when_none=False)
|
||||
self.fields["full_name"].initial = full_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue