SiteSettings admin

This commit is contained in:
j 2010-02-27 16:57:50 +05:30
parent 8c1959e5a5
commit 419099d280

View file

@ -10,3 +10,9 @@ class PageAdmin(admin.ModelAdmin):
search_fields = ['name', 'body'] search_fields = ['name', 'body']
admin.site.register(models.Page, PageAdmin) admin.site.register(models.Page, PageAdmin)
class SiteSettingsAdmin(admin.ModelAdmin):
search_fields = ['key', 'value']
admin.site.register(models.SiteSettings, SiteSettingsAdmin)