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

Display dates on syntheses page

This commit is contained in:
Yohann D'ANELLO
2020-05-08 16:25:55 +02:00
parent 397f243c82
commit e5b4a9b80f
4 changed files with 77 additions and 35 deletions

View File

@ -268,7 +268,6 @@ class Synthesis(Document):
source = models.CharField(
max_length=16,
choices=[
("defender", _("Defender")),
("opponent", _("Opponent")),
("rapporteur", _("Rapporteur")),
],

View File

@ -368,6 +368,8 @@ class SynthesesView(TeamMixin, BaseFormView, SingleTableView):
self.object_list = self.get_queryset()
context = super().get_context_data(**kwargs)
context["now"] = timezone.now()
context["real_deadline_1"] = self.request.user.team.future_tournament.date_syntheses + timedelta(minutes=30)
context["real_deadline_2"] = self.request.user.team.future_tournament.date_syntheses_2 + timedelta(minutes=30)
return context
def form_valid(self, form):