annotate gpp/core/admin.py @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children f3ad863505bf
rev   line source
gremmie@1 1 """This file contains the automatic admin site definitions for the core Models"""
gremmie@1 2
gremmie@1 3 from django.contrib import admin
gremmie@1 4 from core.models import SiteConfig
gremmie@1 5 from core.models import DebugLog
gremmie@1 6
gremmie@1 7 class SiteConfigAdmin(admin.ModelAdmin):
gremmie@1 8 pass
gremmie@1 9
gremmie@1 10 class DebugLogAdmin(admin.ModelAdmin):
gremmie@1 11 list_display = ('__unicode__', 'level')
gremmie@1 12 ordering = ('-timestamp', )
gremmie@1 13 date_hierarchy = 'timestamp'
gremmie@1 14
gremmie@1 15 admin.site.register(SiteConfig, SiteConfigAdmin)
gremmie@1 16 admin.site.register(DebugLog, DebugLogAdmin)