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:
@@ -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
|
||||
|
Reference in New Issue
Block a user