X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/3f387ec5d75ff85576e87649427cbdc1f14a95b8..b7fbbcfd919b7cf3d69da333a7e3f7c09eacd7e8:/wtem/admin.py?ds=sidebyside

diff --git a/wtem/admin.py b/wtem/admin.py
index 4621f5f..acab816 100644
--- a/wtem/admin.py
+++ b/wtem/admin.py
@@ -240,8 +240,11 @@ def report_view(request):
 
 
 class ConfirmationAdmin(admin.ModelAdmin):
-    list_display = ('email', 'first_name', 'last_name', 'readable_contact', 'readable_age', 'confirmed')
-    readonly_fields = ('contact', 'readable_contact', 'readable_age', 'key', 'confirmed')
+    list_display = ('email', 'first_name', 'last_name', 'readable_contact', 'school_phone', 'readable_age', 'confirmed')
+    readonly_fields = ('contact', 'readable_contact', 'readable_age', 'school_phone', 'key', 'confirmed')
+    list_filter = ('confirmed',)
+    list_select_related = ('contact',)
+    search_fields = ('last_name', 'email', 'contact__contact')
 
     def resend_mail(self, request, queryset):
         for confirmation in queryset: