1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 06:20:36 +02:00

Clarify syntheses name

This commit is contained in:
2021-04-10 10:02:49 +02:00
parent ef8d124ade
commit bbd8ad43cd
3 changed files with 25 additions and 18 deletions

View File

@ -169,7 +169,7 @@ class SolutionForm(forms.ModelForm):
class PoolForm(forms.ModelForm):
class Meta:
model = Pool
fields = ('tournament', 'round', 'bbb_url', 'juries',)
fields = ('tournament', 'round', 'bbb_url', 'results_available', 'juries',)
widgets = {
"juries": forms.CheckboxSelectMultiple,
}

View File

@ -598,7 +598,12 @@ class Synthesis(models.Model):
)
def __str__(self):
return _("Synthesis for the {type} of the {passage}").format(type=self.get_type_display(), passage=self.passage)
return _("Synthesis of {team} as {type} for problem {problem} of {defender}").format(
team=self.participation.team.trigram,
type=self.get_type_display(),
problem=self.passage.solution_number,
defender=self.passage.defender.team.trigram,
)
class Meta:
verbose_name = _("synthesis")