From 2e193df8137dbf94ddbbc476545117df9d47dbb2 Mon Sep 17 00:00:00 2001 From: Laurent Date: Sat, 16 Mar 2024 09:29:10 +0100 Subject: [PATCH] Fix name --- tournaments/models/match.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tournaments/models/match.py b/tournaments/models/match.py index d3089fc..2a6e80d 100644 --- a/tournaments/models/match.py +++ b/tournaments/models/match.py @@ -42,7 +42,9 @@ class Match(models.Model): return " ".join(items) def stage_name(self): - if self.round: + if self.name: + return self.name + elif self.round: return self.round.name() elif self.group_stage: return self.group_stage.name()