|
|
|
|
@ -534,7 +534,7 @@ class Tournament(BaseModel): |
|
|
|
|
|
|
|
|
|
if round and matches: |
|
|
|
|
matches.sort(key=lambda m: m.index) |
|
|
|
|
group = self.create_match_group(round.name(), matches) |
|
|
|
|
group = self.create_match_group(round.plural_name(), matches) |
|
|
|
|
groups.append(group) |
|
|
|
|
|
|
|
|
|
ranking_matches = round.ranking_matches(hide_empty_matches) |
|
|
|
|
@ -1039,7 +1039,7 @@ class Tournament(BaseModel): |
|
|
|
|
return plural_format("jour", self.day_duration) |
|
|
|
|
|
|
|
|
|
def has_club_address(self): |
|
|
|
|
if self.event.club: |
|
|
|
|
if self.event and self.event.club: |
|
|
|
|
return self.event.club.has_address() |
|
|
|
|
else: |
|
|
|
|
return False |
|
|
|
|
@ -1471,10 +1471,13 @@ class Tournament(BaseModel): |
|
|
|
|
else: |
|
|
|
|
return True |
|
|
|
|
|
|
|
|
|
def umpire_contact(self): |
|
|
|
|
def umpire_contact(self): |
|
|
|
|
if self.umpire_custom_contact is not None: |
|
|
|
|
return self.umpire_custom_contact |
|
|
|
|
return self.event.creator.full_name() |
|
|
|
|
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: |
|
|
|
|
|