Add full_name

This commit is contained in:
zandercymatics 2024-05-20 12:43:15 -06:00
parent 364e38792c
commit e5427aadf7
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 8 additions and 9 deletions

View file

@ -84,5 +84,4 @@ class FinishSetupProfileForm(UserProfileForm):
self.fields["title"].label = "Title or role in your organization"
# Define the "full_name" value
if self.instance and hasattr(self.instance, 'full_name'):
self.fields["full_name"].initial = self.instance.get_formatted_name()
self.fields["full_name"].initial = self.instance.get_formatted_name()