From 878d344faa6e77a2240a334b9bae33f4d90d7ba4 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 4 Dec 2024 08:24:34 +0000 Subject: [PATCH 1/2] Update: changed system user create names to legal names --- mooringlicensing/components/users/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mooringlicensing/components/users/utils.py b/mooringlicensing/components/users/utils.py index b78c92d3a..309a085b5 100644 --- a/mooringlicensing/components/users/utils.py +++ b/mooringlicensing/components/users/utils.py @@ -12,8 +12,8 @@ def create_system_user(email_user_id, email, first_name, last_name, dob, phone=N return SystemUser.objects.create( ledger_id_id=email_user_id, email=email, - first_name=first_name, - last_name=last_name, + legal_first_name=first_name, + legal_last_name=last_name, legal_dob=dob, phone_number=phone, mobile_number=mobile, From fe429989d68dfd65e8e19675c49d5e11c5fd87f5 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 4 Dec 2024 08:27:21 +0000 Subject: [PATCH 2/2] Update: for get_or_create as well --- mooringlicensing/components/users/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mooringlicensing/components/users/utils.py b/mooringlicensing/components/users/utils.py index 309a085b5..20fa0e2a9 100644 --- a/mooringlicensing/components/users/utils.py +++ b/mooringlicensing/components/users/utils.py @@ -39,8 +39,8 @@ def get_or_create_system_user(email_user_id, email, first_name, last_name, dob, if update: system_user.change_by_user_id = system_user.id system_user.email = email - system_user.first_name = first_name - system_user.last_name = last_name + system_user.legal_first_name = first_name + system_user.legal_last_name = last_name system_user.legal_dob = dob system_user.phone_number = phone system_user.mobile_number = mobile @@ -52,8 +52,8 @@ def get_or_create_system_user(email_user_id, email, first_name, last_name, dob, system_user = SystemUser.objects.create( ledger_id_id=email_user_id, email=email, - first_name=first_name, - last_name=last_name, + legal_first_name=first_name, + legal_last_name=last_name, legal_dob=dob, phone_number=phone, mobile_number=mobile,