comparison 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
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 """This file contains the automatic admin site definitions for the core Models"""
2
3 from django.contrib import admin
4 from core.models import SiteConfig
5 from core.models import DebugLog
6
7 class SiteConfigAdmin(admin.ModelAdmin):
8 pass
9
10 class DebugLogAdmin(admin.ModelAdmin):
11 list_display = ('__unicode__', 'level')
12 ordering = ('-timestamp', )
13 date_hierarchy = 'timestamp'
14
15 admin.site.register(SiteConfig, SiteConfigAdmin)
16 admin.site.register(DebugLog, DebugLogAdmin)