X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/b94a8f7eea28c37a84d705a405112a4ba45adf12..3be0713303de6ba83335a530894d75b86027e042:/admin.py 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)