mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 07:02: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:
parent
6ac36fdb69
commit
a27a115d66
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user