diff --git a/tournaments/models/match.py b/tournaments/models/match.py index fdd7f1d..73a1205 100644 --- a/tournaments/models/match.py +++ b/tournaments/models/match.py @@ -149,7 +149,7 @@ class Match(models.Model): livematch = LiveMatch(title, date, duration, court, self.started(), ended) 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 else: image = None