From: Guillaume Pellerin Date: Tue, 14 Jul 2015 12:30:52 +0000 (+0200) Subject: add admin script list filters X-Git-Tag: 1.1~222 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4772728f3c33a46ae0a5bca361ff851bea257049;p=teleforma.git add admin script list filters --- diff --git a/teleforma/exam/admin.py b/teleforma/exam/admin.py index 700adfb2..1f2f46d1 100644 --- a/teleforma/exam/admin.py +++ b/teleforma/exam/admin.py @@ -40,6 +40,7 @@ class ScriptAdmin(admin.ModelAdmin): search_fields = ['author__username', 'author__last_name', 'corrector__username', 'corrector__last_name', 'course__title', 'course__code'] readonly_fields = ['date_added','uuid','box_uuid','sha1','mime_type'] + list_filter = ['course__title', 'session', 'type'] list_display = ['title', 'author_name'] def author_name(self, instance):