add tournament_status_display method

clubs
Razmig Sarkissian 1 year ago
parent e9c819cec8
commit 01cca8f8e2
  1. 4
      tournaments/models/tournament.py

@ -125,8 +125,8 @@ class Tournament(models.Model):
return None return None
def tournament_status_display(self): def tournament_status_display(self):
if self.is_canceled: #if self.is_canceled:
return "Annulé" # return "Annulé"
teams = self.teams() teams = self.teams()
if teams is not None and len(teams) > 0: if teams is not None and len(teams) > 0:

Loading…
Cancel
Save