diff --git a/binder/bcommon/admin.py b/binder/bcommon/admin.py index 36ed863..e7ae7d1 100644 --- a/binder/bcommon/admin.py +++ b/binder/bcommon/admin.py @@ -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)