Made the embed widget javascript work by overloading the dismissRelatedLookupPopup...
[philo.git] / philo / admin / nodes.py
index 853ba25..46c456a 100644 (file)
@@ -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)