mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-03 18:02:50 +02:00
Register pools
This commit is contained in:
@ -23,9 +23,9 @@ from tfjm.lists import get_sympa_client
|
||||
from tfjm.matrix import Matrix
|
||||
from tfjm.views import AdminMixin
|
||||
|
||||
from .forms import JoinTeamForm, ParticipationForm, RequestValidationForm, SolutionForm, TeamForm, TournamentForm, \
|
||||
ValidateParticipationForm
|
||||
from .models import Participation, Team, Tournament, Solution
|
||||
from .forms import JoinTeamForm, ParticipationForm, PoolForm, RequestValidationForm, SolutionForm, TeamForm,\
|
||||
TournamentForm, ValidateParticipationForm
|
||||
from .models import Participation, Team, Tournament, Solution, Pool
|
||||
from .tables import TeamTable, TournamentTable, ParticipationTable, PoolTable
|
||||
|
||||
|
||||
@ -468,3 +468,17 @@ class SolutionUploadView(LoginRequiredMixin, FormView):
|
||||
|
||||
def get_success_url(self):
|
||||
return reverse_lazy("participation:participation_detail", args=(self.participation.pk,))
|
||||
|
||||
|
||||
class PoolCreateView(AdminMixin, CreateView):
|
||||
model = Pool
|
||||
form_class = PoolForm
|
||||
|
||||
|
||||
class PoolDetailView(AdminMixin, DetailView):
|
||||
model = Pool
|
||||
|
||||
|
||||
class PoolUpdateView(AdminMixin, UpdateView):
|
||||
model = Pool
|
||||
form_class = PoolForm
|
||||
|
Reference in New Issue
Block a user