1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 05:18:26 +02:00

There is no video in the TFJM²

This commit is contained in:
Yohann D'ANELLO
2021-01-12 15:42:32 +01:00
parent 6bcb050754
commit b4e7ec6550
10 changed files with 13 additions and 16 deletions

View File

@ -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'

View File

@ -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()

View File

@ -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,

View File

@ -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()

View File

@ -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 #}

View File

@ -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