sync_v2
Laurent 8 months ago
parent 49123a3b58
commit 810c6578bc
  1. 3
      tournaments/models/tournament.py
  2. 1
      tournaments/services/email_service.py

@ -1420,7 +1420,10 @@ class Tournament(BaseModel):
if self.umpire_custom_contact is not None:
print(self.umpire_custom_contact)
return self.umpire_custom_contact
if self.event and self.event.creator:
return self.event.creator.full_name()
else:
return None
def umpire_mail(self):
if self.umpire_custom_mail is not None:

@ -334,6 +334,7 @@ class TournamentEmailService:
def _format_umpire_contact(tournament):
contact_parts = []
creator_full_name = tournament.umpire_contact()
if creator_full_name:
contact_parts.append(creator_full_name)
if not tournament.hide_umpire_mail:

Loading…
Cancel
Save