From 419099d280f9174541967a119f479311b12bbf57 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 27 Feb 2010 16:57:50 +0530 Subject: [PATCH] SiteSettings admin --- pandora/app/admin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora/app/admin.py b/pandora/app/admin.py index 135219530..90cbd79f8 100644 --- a/pandora/app/admin.py +++ b/pandora/app/admin.py @@ -10,3 +10,9 @@ class PageAdmin(admin.ModelAdmin): search_fields = ['name', 'body'] admin.site.register(models.Page, PageAdmin) + + +class SiteSettingsAdmin(admin.ModelAdmin): + search_fields = ['key', 'value'] + +admin.site.register(models.SiteSettings, SiteSettingsAdmin)