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

@ -100,13 +100,6 @@ urlpatterns = [
name="analytics",
),
path("admin/", admin.site.urls),
path(
# We embed the current user ID here, but we have a permission check
# that ensures the user is who they say they are.
"finish-profile-setup/<int:pk>",
views.FinishProfileSetupView.as_view(),
name="finish-user-profile-setup",
),
path(
"domain-request/<id>/edit/",
views.DomainRequestWizard.as_view(),
@ -185,6 +178,13 @@ urlpatterns = [
views.DomainAddUserView.as_view(),
name="domain-users-add",
),
path(
# We embed the current user ID here, but we have a permission check
# that ensures the user is who they say they are.
"finish-profile-setup/<int:pk>",
views.FinishProfileSetupView.as_view(),
name="finish-user-profile-setup",
),
path(
"user-profile",
views.UserProfileView.as_view(),

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()