From e5427aadf73791fde163775a90f91b70d05585ce Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Mon, 20 May 2024 12:43:15 -0600 Subject: [PATCH] Add full_name --- src/registrar/config/urls.py | 14 +++++++------- src/registrar/forms/user_profile.py | 3 +-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/registrar/config/urls.py b/src/registrar/config/urls.py index 2d4c33569..490b64958 100644 --- a/src/registrar/config/urls.py +++ b/src/registrar/config/urls.py @@ -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/", - views.FinishProfileSetupView.as_view(), - name="finish-user-profile-setup", - ), path( "domain-request//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/", + views.FinishProfileSetupView.as_view(), + name="finish-user-profile-setup", + ), path( "user-profile", views.UserProfileView.as_view(), diff --git a/src/registrar/forms/user_profile.py b/src/registrar/forms/user_profile.py index abc90d195..13fe7f519 100644 --- a/src/registrar/forms/user_profile.py +++ b/src/registrar/forms/user_profile.py @@ -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()