mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 03:02:14 +01:00 
			
		
		
		
	Indicate if this is a final solution
This commit is contained in:
		@@ -560,13 +560,14 @@ class Solution(models.Model):
 | 
			
		||||
 | 
			
		||||
    def __str__(self):
 | 
			
		||||
        return _("Solution of team {team} for problem {problem}")\
 | 
			
		||||
            .format(team=self.participation.team.name, problem=self.problem)
 | 
			
		||||
            .format(team=self.participation.team.name, problem=self.problem)\
 | 
			
		||||
            + (" " + _("for final") if self.final_solution else "")
 | 
			
		||||
 | 
			
		||||
    class Meta:
 | 
			
		||||
        verbose_name = _("solution")
 | 
			
		||||
        verbose_name_plural = _("solutions")
 | 
			
		||||
        unique_together = (('participation', 'problem', 'final_solution', ), )
 | 
			
		||||
        ordering = ('participation__team__trigram', 'problem',)
 | 
			
		||||
        ordering = ('participation__team__trigram', 'final_solution', 'problem',)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Synthesis(models.Model):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user