Merge git://github.com/melinath/philo into melinath
[philo.git] / admin.py
index e5b93b4..0f34028 100644 (file)
--- a/admin.py
+++ b/admin.py
@@ -281,6 +281,17 @@ class PageAdmin(NodeAdmin):
                                        contentreference.save()
 
 
+class RedirectAdmin(admin.ModelAdmin):
+       list_display=('slug', 'target', 'path', 'status_code',)
+       list_filter=('status_code',)
+       form = RedirectAdminForm
+
+
+class FileAdmin(admin.ModelAdmin):
+       form=FileAdminForm
+       list_display=('slug', 'mimetype', 'path', 'file',)
+
+
 admin.site.register(Collection, CollectionAdmin)
 admin.site.register(Redirect, RedirectAdmin)
 admin.site.register(File, FileAdmin)