Make the admin UI more useful showing fields in key and zone

This commit is contained in:
Jeffrey Forman 2011-04-13 19:17:48 -04:00
parent 246373a274
commit 7314c6daf8
1 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,12 @@
from bcommon.models import BindServer, Key, Zone
from django.contrib import admin
class ZoneAdmin(admin.ModelAdmin):
list_display = [ 'zone_name', 'server']
class KeyAdmin(admin.ModelAdmin):
list_display = [ 'name', 'data' ]
admin.site.register(BindServer)
admin.site.register(Key)
admin.site.register(Zone)
admin.site.register(Key, KeyAdmin)
admin.site.register(Zone, ZoneAdmin)