]> git.parisson.com Git - teleforma.git/commitdiff
add admin script list filters
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 14 Jul 2015 12:30:52 +0000 (14:30 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 14 Jul 2015 12:30:52 +0000 (14:30 +0200)
teleforma/exam/admin.py

index 700adfb21d4ad41c4271819efd1f400ca780861b..1f2f46d1a98ad47e367c5f42b6fa78eb2d85a170 100644 (file)
@@ -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):