From 8f5fab84784a61cf27face94db87f5b57817f8c6 Mon Sep 17 00:00:00 2001 From: Laurent Date: Sun, 23 Jun 2024 17:17:40 +0200 Subject: [PATCH] Properly fix crash --- tournaments/models/match.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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