Skip to content

Commit

Permalink
Use the first_name display method instead of preferred name (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb authored Sep 20, 2023
1 parent fcd79c4 commit 3d2acd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peoplefinder/templatetags/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def byte_hash(val: str):
"style": (
f"--color-1: {byte_hash(profile.first_name)};"
f" --color-2: {byte_hash(profile.last_name)};"
f" --color-3: {byte_hash(profile.preferred_first_name)}"
f" --color-3: {byte_hash(profile.get_first_name_display())};"
),
}
return mark_safe(" ".join([f'{k}="{v}"' for k, v in attrs.items()])) # noqa S308

0 comments on commit 3d2acd1

Please sign in to comment.