mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 16:38:23 +02:00
There is no video in the TFJM²
This commit is contained in:
@ -7,7 +7,7 @@ from django.db.models.signals import post_save, pre_save
|
||||
|
||||
class ParticipationConfig(AppConfig):
|
||||
"""
|
||||
The participation app contains the data about the teams, videos, ...
|
||||
The participation app contains the data about the teams, solutions, ...
|
||||
"""
|
||||
name = 'participation'
|
||||
|
||||
|
@ -14,8 +14,7 @@ from .models import Participation, Team, Tournament
|
||||
|
||||
class TeamForm(forms.ModelForm):
|
||||
"""
|
||||
Form to create a team, with the name and the trigram,
|
||||
and if the team accepts that Animath diffuse the videos.
|
||||
Form to create a team, with the name and the trigram,...
|
||||
"""
|
||||
def clean_trigram(self):
|
||||
trigram = self.cleaned_data["trigram"].upper()
|
||||
|
@ -235,7 +235,7 @@ class Tournament(models.Model):
|
||||
class Participation(models.Model):
|
||||
"""
|
||||
The Participation model contains all data that are related to the participation:
|
||||
chosen problem, validity status, videos,...
|
||||
chosen problem, validity status, solutions,...
|
||||
"""
|
||||
team = models.OneToOneField(
|
||||
Team,
|
||||
|
@ -7,7 +7,7 @@ from tfjm.lists import get_sympa_client
|
||||
|
||||
def create_team_participation(instance, created, **_):
|
||||
"""
|
||||
When a team got created, create an associated team and create Video objects.
|
||||
When a team got created, create an associated participation.
|
||||
"""
|
||||
participation = Participation.objects.get_or_create(team=instance)[0]
|
||||
participation.save()
|
||||
|
@ -93,7 +93,7 @@
|
||||
{% if team.participation.valid %}
|
||||
<div class="text-center">
|
||||
<a class="btn btn-info" href="{% url "participation:participation_detail" pk=team.participation.pk %}">
|
||||
<i class="fas fa-video"></i> {% trans "Access to team participation" %} <i class="fas fa-video"></i>
|
||||
<i class="fas fa-file-pdf"></i> {% trans "Access to team participation" %}
|
||||
</a>
|
||||
</div>
|
||||
{% elif team.participation.valid == None %} {# Team did not ask for validation #}
|
||||
|
@ -374,7 +374,7 @@ class MyParticipationDetailView(LoginRequiredMixin, RedirectView):
|
||||
|
||||
class ParticipationDetailView(LoginRequiredMixin, DetailView):
|
||||
"""
|
||||
Display detail about the participation of a team, and manage the video submission.
|
||||
Display detail about the participation of a team, and manage the solution submission.
|
||||
"""
|
||||
model = Participation
|
||||
|
||||
|
Reference in New Issue
Block a user