Skip to content
Snippets Groups Projects
Verified Commit 620352d1 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix addressing_name_format

parent a8863f9f
No related branches found
No related tags found
No related merge requests found
Pipeline #2011 failed
......@@ -141,11 +141,11 @@ class Person(ExtensibleModel):
return f"{self.last_name}, {self.first_name}"
@property
def adressing_name(self) -> str:
def addressing_name(self) -> str:
"""Full name of person in format configured for addressing."""
if get_site_preferences()["notification__addressing_name_format"] == "last_first":
if self.preferences["notification__addressing_name_format"] == "last_first":
return f"{self.last_name}, {self.first_name}"
elif get_site_preferences()["notification__addressing_name_format"] == "first_last":
elif self.preferences["notification__addressing_name_format"] == "first_last":
return f"{self.first_name} {self.last_name}"
@property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment