mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 08:22:10 +01:00 
			
		
		
		
	fix solution str representation
This commit is contained in:
		@@ -561,7 +561,7 @@ class Solution(models.Model):
 | 
				
			|||||||
    def __str__(self):
 | 
					    def __str__(self):
 | 
				
			||||||
        return _("Solution of team {team} for problem {problem}")\
 | 
					        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 "")
 | 
					            + (" " + str(_("for final")) if self.final_solution else "")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    class Meta:
 | 
					    class Meta:
 | 
				
			||||||
        verbose_name = _("solution")
 | 
					        verbose_name = _("solution")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user