Properly fix crash

clubs
Laurent 1 year ago
parent ad974801fe
commit 8f5fab8478
  1. 2
      tournaments/models/match.py

@ -149,7 +149,7 @@ class Match(models.Model):
livematch = LiveMatch(title, date, duration, court, self.started(), ended) livematch = LiveMatch(title, date, duration, court, self.started(), ended)
for team_score in self.sorted_team_scores(): for team_score in self.sorted_team_scores():
if team_score.team_registration.logo: if team_score.team_registration:
image = team_score.team_registration.logo image = team_score.team_registration.logo
else: else:
image = None image = None

Loading…
Cancel
Save