mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-20 01:36:00 +02:00
Add full_name
This commit is contained in:
parent
364e38792c
commit
e5427aadf7
2 changed files with 8 additions and 9 deletions
|
@ -100,13 +100,6 @@ urlpatterns = [
|
||||||
name="analytics",
|
name="analytics",
|
||||||
),
|
),
|
||||||
path("admin/", admin.site.urls),
|
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(
|
path(
|
||||||
"domain-request/<id>/edit/",
|
"domain-request/<id>/edit/",
|
||||||
views.DomainRequestWizard.as_view(),
|
views.DomainRequestWizard.as_view(),
|
||||||
|
@ -185,6 +178,13 @@ urlpatterns = [
|
||||||
views.DomainAddUserView.as_view(),
|
views.DomainAddUserView.as_view(),
|
||||||
name="domain-users-add",
|
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(
|
path(
|
||||||
"user-profile",
|
"user-profile",
|
||||||
views.UserProfileView.as_view(),
|
views.UserProfileView.as_view(),
|
||||||
|
|
|
@ -84,5 +84,4 @@ class FinishSetupProfileForm(UserProfileForm):
|
||||||
self.fields["title"].label = "Title or role in your organization"
|
self.fields["title"].label = "Title or role in your organization"
|
||||||
|
|
||||||
# Define the "full_name" value
|
# 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()
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue