]> git.parisson.com Git - teleforma.git/commitdiff
Add student name in appointment admin search box
authorYoan Le Clanche <yoanl@pilotsystems.net>
Fri, 9 Oct 2020 09:05:28 +0000 (11:05 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Fri, 9 Oct 2020 09:05:28 +0000 (11:05 +0200)
teleforma/admin.py

index 04c55d8fc0bb39e326994c10667aeffe43e3132e..3d28ee5ad403c44c5fb7eb79d31eb2f3f3285a2e 100644 (file)
@@ -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):