Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed system user create names to legal names #492

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions mooringlicensing/components/users/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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,
Expand Down
Loading