From b59285410db801f8500a0caefdceaf26d00aa217 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 10 Feb 2015 23:00:51 +0100 Subject: [PATCH] add student list filter --- teleforma/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teleforma/admin.py b/teleforma/admin.py index 5c330add..e65cd66f 100644 --- a/teleforma/admin.py +++ b/teleforma/admin.py @@ -23,7 +23,8 @@ class StudentAdmin(admin.ModelAdmin): model = Student exclude = ['options'] inlines = [StudentPaymentInline] - search_fields = ['user__first_name', 'user__last_name', 'user__username',] + search_fields = ['user__first_name', 'user__last_name', 'user__username'] + list_filter = ['user__is_active'] class ProfessorProfileInline(admin.StackedInline): model = Professor -- 2.39.5