X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/cc6dbd55a2af538657c288a709662b9c84949854..148d23c4d83c672dfde4bd23d27b46857be8339f:/philo/admin/nodes.py diff --git a/philo/admin/nodes.py b/philo/admin/nodes.py index 853ba25..46c456a 100644 --- a/philo/admin/nodes.py +++ b/philo/admin/nodes.py @@ -47,10 +47,12 @@ class RedirectAdmin(ViewAdmin): class FileAdmin(ViewAdmin): fieldsets = ( (None, { - 'fields': ('file', 'mimetype') + 'fields': ('name', 'file', 'mimetype') }), ) - list_display = ('mimetype', 'file') + list_display = ('name', 'mimetype', 'file') + search_fields = ('name',) + list_filter = ('mimetype',) admin.site.register(Node, NodeAdmin)