@ -34,7 +34,12 @@ class Match(models.Model):
return self.group_stage.tournament
def court_name(self, index):
return self.tournament().event.club.court_name(index)
club = self.tournament().event.club
if club:
return club.court_name(index)
elif index is not None:
return f"Terrain {index + 1}"
return ""
def backup_name(self):
items = []