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

Replace pool name by its short name in severous views

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-04-18 15:12:45 +02:00
parent 3e24e10780
commit bacdd5cfcf
2 changed files with 7 additions and 7 deletions

View File

@ -135,7 +135,7 @@ class PassageAdmin(admin.ModelAdmin):
@admin.display(description=_("pool"), ordering='pool__letter')
def pool_abbr(self, record):
return f"{record.pool.get_letter_display()}{record.pool.round}"
return f"{record.pool.short_name}"
@admin.display(description=_("tournament"), ordering='pool__tournament__name')
def tournament(self, record: Passage):
@ -154,7 +154,7 @@ class NoteAdmin(admin.ModelAdmin):
@admin.display(description=_("pool"))
def pool(self, record):
return record.passage.pool.get_letter_display()
return record.passage.pool.short_name
@admin.register(Solution)