1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 06:22:22 +00:00

Add observer in the passage admin page

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2023-04-07 22:21:29 +02:00
parent 6ac36fdb69
commit a27a115d66
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -52,7 +52,7 @@ class PassageAdmin(admin.ModelAdmin):
'pool_abbr', 'tournament')
list_filter = ('pool__tournament', 'pool__round', 'pool__letter', 'solution_number',)
search_fields = ('pool__participations__team__name', 'pool__participations__team__trigram',)
autocomplete_fields = ('pool', 'defender', 'opponent', 'reporter',)
autocomplete_fields = ('pool', 'defender', 'opponent', 'reporter', 'observer',)
@admin.display(description=_("defender"))
def defender_trigram(self, record: Passage):