2010-02-16 15:52:34 +05:30
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vi:si:et:sw=4:sts=4:ts=4
|
|
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
import models
|
|
|
|
|
2011-01-01 17:14:42 +05:30
|
|
|
|
2010-02-16 15:52:34 +05:30
|
|
|
class PageAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ['name', 'body']
|
|
|
|
|
|
|
|
admin.site.register(models.Page, PageAdmin)
|
2010-02-27 16:57:50 +05:30
|
|
|
|
|
|
|
|
|
|
|
class SiteSettingsAdmin(admin.ModelAdmin):
|
|
|
|
search_fields = ['key', 'value']
|
|
|
|
|
|
|
|
admin.site.register(models.SiteSettings, SiteSettingsAdmin)
|