Skip to content
Snippets Groups Projects
Verified Commit 99fb1f4c authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add mail_sernder property to Person

parent 06a38564
No related branches found
No related tags found
No related merge requests found
Pipeline #1992 failed
...@@ -148,6 +148,11 @@ class Person(ExtensibleModel): ...@@ -148,6 +148,11 @@ class Person(ExtensibleModel):
elif get_site_preferences()["notification__addressing_name_format"] == "first_last": elif get_site_preferences()["notification__addressing_name_format"] == "first_last":
return f"{self.first_name} {self.last_name}" return f"{self.first_name} {self.last_name}"
@property
def mail_sender(self) -> str:
"""E-mail sender in "Name <email>" format."""
return f"\"{self.addressing_name}\" <{self.email}>"
@property @property
def age(self): def age(self):
"""Age of the person at current time.""" """Age of the person at current time."""
......
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