From bb01e1b0b521f23611efb4c8991e2a1bbfb949da Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 9 Apr 2021 16:17:12 +0200 Subject: [PATCH] Display notes in django-admin --- apps/participation/admin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/participation/admin.py b/apps/participation/admin.py index 54d4662..b531682 100644 --- a/apps/participation/admin.py +++ b/apps/participation/admin.py @@ -4,7 +4,7 @@ from django.contrib import admin from django.utils.translation import gettext_lazy as _ -from .models import Participation, Passage, Pool, Solution, Synthesis, Team, Tournament +from .models import Note, Participation, Passage, Pool, Solution, Synthesis, Team, Tournament @admin.register(Team) @@ -36,6 +36,11 @@ class PassageAdmin(admin.ModelAdmin): search_fields = ('pool__participations__team__name', 'pool__participations__team__trigram',) +@admin.register(Note) +class NoteAdmin(admin.ModelAdmin): + search_fields = ('jury',) + + @admin.register(Solution) class SolutionAdmin(admin.ModelAdmin): list_display = ('participation',)