1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-08-04 23:03:46 +02:00

Display the tournament list

This commit is contained in:
Yohann D'ANELLO
2020-12-30 12:13:05 +01:00
parent e2e2c97584
commit 03144ae58e
6 changed files with 54 additions and 6 deletions

View File

@@ -24,8 +24,8 @@ from tfjm.matrix import Matrix
from tfjm.views import AdminMixin
from .forms import JoinTeamForm, ParticipationForm, RequestValidationForm, TeamForm, ValidateParticipationForm
from .models import Participation, Team
from .tables import TeamTable
from .models import Participation, Team, Tournament
from .tables import TeamTable, TournamentTable
class CreateTeamView(LoginRequiredMixin, CreateView):
@@ -401,3 +401,8 @@ class ParticipationDetailView(LoginRequiredMixin, DetailView):
context["title"] = lambda: _("Participation of team {trigram}").format(trigram=self.object.team.trigram)
return context
class TournamentListView(SingleTableView):
model = Tournament
table_class = TournamentTable