X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/943e8bc4af0c11b0ace3811199e3b0844c4c3fbc..d918e1993166047a20e3f8babd538afda214f7c0:/philo/admin/nodes.py?ds=sidebyside 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)