comparison gpp/core/admin.py @ 2:f3ad863505bf

Got rid of the core.SiteConfig model and all usage.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 Apr 2009 17:57:22 +0000
parents dbd703f7d63a
children
comparison
equal deleted inserted replaced
1:dbd703f7d63a 2:f3ad863505bf
1 """This file contains the automatic admin site definitions for the core Models""" 1 """This file contains the automatic admin site definitions for the core Models"""
2 2
3 from django.contrib import admin 3 from django.contrib import admin
4 from core.models import SiteConfig
5 from core.models import DebugLog 4 from core.models import DebugLog
6 5
7 class SiteConfigAdmin(admin.ModelAdmin): 6 class DebugLogAdmin(admin.ModelAdmin):
8 pass 7 list_display = ('__unicode__', 'level')
8 ordering = ('-timestamp', )
9 date_hierarchy = 'timestamp'
9 10
10 class DebugLogAdmin(admin.ModelAdmin): 11 admin.site.register(DebugLog, DebugLogAdmin)
11 list_display = ('__unicode__', 'level')
12 ordering = ('-timestamp', )
13 date_hierarchy = 'timestamp'
14 12
15 admin.site.register(SiteConfig, SiteConfigAdmin) 13 # vim: ts=4 sw=4
16 admin.site.register(DebugLog, DebugLogAdmin)