From 55a99dd7f2591d3a93aa31ae42673dd514f6f1be Mon Sep 17 00:00:00 2001 From: Jeffrey Forman Date: Thu, 8 Nov 2012 23:00:06 -0500 Subject: [PATCH] clean up admin panel, include columns for fields in models --- binder/admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/binder/admin.py b/binder/admin.py index 699bf72..6fc90d6 100644 --- a/binder/admin.py +++ b/binder/admin.py @@ -1,11 +1,11 @@ from models import BindServer, Key from django.contrib import admin -class ZoneAdmin(admin.ModelAdmin): - list_display = [ 'zone_name', 'server', 'key' ] +class BindServerAdmin(admin.ModelAdmin): + list_display = [ 'hostname', 'statistics_port', 'default_transfer_key' ] class KeyAdmin(admin.ModelAdmin): - list_display = [ 'name', 'data' ] + list_display = [ 'name', 'data', 'algorithm' ] -admin.site.register(BindServer) +admin.site.register(BindServer, BindServerAdmin) admin.site.register(Key, KeyAdmin)