mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 07:42:11 +01:00 
			
		
		
		
	Hugs
This commit is contained in:
		@@ -208,6 +208,10 @@ class Team(models.Model):
 | 
			
		||||
        return ['<a href="{url}">'.format(url=reverse_lazy("member:information", args=(user.pk,))) + str(user) + '</a>'
 | 
			
		||||
                for user in self.participants]
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def future_tournament(self):
 | 
			
		||||
        return Tournament.get_final() if self.selected_for_final else self.tournament
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def can_validate(self):
 | 
			
		||||
        # TODO In a normal time, team needs a motivation letter and authorizations.
 | 
			
		||||
 
 | 
			
		||||
@@ -227,7 +227,10 @@ class SolutionsView(TeamMixin, BaseFormView, SingleTableView):
 | 
			
		||||
 | 
			
		||||
    def get_context_data(self, **kwargs):
 | 
			
		||||
        self.object_list = self.get_queryset()
 | 
			
		||||
        return super().get_context_data(**kwargs)
 | 
			
		||||
        context = super().get_context_data(**kwargs)
 | 
			
		||||
        context["now"] = timezone.now()
 | 
			
		||||
        context["real_deadline"] = self.request.user.team.tournament.date_solutions + timedelta(minutes=30)
 | 
			
		||||
        return context
 | 
			
		||||
 | 
			
		||||
    def get_queryset(self):
 | 
			
		||||
        qs = super().get_queryset()
 | 
			
		||||
@@ -341,7 +344,9 @@ class SynthesesView(TeamMixin, BaseFormView, SingleTableView):
 | 
			
		||||
 | 
			
		||||
    def get_context_data(self, **kwargs):
 | 
			
		||||
        self.object_list = self.get_queryset()
 | 
			
		||||
        return super().get_context_data(**kwargs)
 | 
			
		||||
        context = super().get_context_data(**kwargs)
 | 
			
		||||
        context["now"] = timezone.now()
 | 
			
		||||
        return context
 | 
			
		||||
 | 
			
		||||
    def form_valid(self, form):
 | 
			
		||||
        synthesis = form.instance
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user