X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/b94a8f7eea28c37a84d705a405112a4ba45adf12..0c94e37b081bc3aa3a903af6ad0b5eb76def7924:/admin.py?ds=sidebyside diff --git a/admin.py b/admin.py index e5b93b4..0f34028 100644 --- 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)