From: Yoan Le Clanche Date: Fri, 9 Oct 2020 09:05:28 +0000 (+0200) Subject: Add student name in appointment admin search box X-Git-Tag: 1.4.3~36 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=33e21a07c0b180643274753daad75553d1eef9de;p=teleforma.git Add student name in appointment admin search box --- diff --git a/teleforma/admin.py b/teleforma/admin.py index 04c55d8f..3d28ee5a 100644 --- a/teleforma/admin.py +++ b/teleforma/admin.py @@ -318,6 +318,7 @@ class AppointmentJuryAdmin(admin.ModelAdmin): class AppointmentAdmin(admin.ModelAdmin): list_display = ('real_date', 'student', 'jury') list_filter = ('slot__date', 'slot__appointment_period', 'slot__mode') + search_fields = ('student__username',) actions = ['export_csv'] def export_csv(self, request, queryset):