clean up admin panel, include columns for fields in models

This commit is contained in:
Jeffrey Forman 2012-11-08 23:00:06 -05:00
parent ae0830436a
commit 55a99dd7f2
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
from models import BindServer, Key from models import BindServer, Key
from django.contrib import admin from django.contrib import admin
class ZoneAdmin(admin.ModelAdmin): class BindServerAdmin(admin.ModelAdmin):
list_display = [ 'zone_name', 'server', 'key' ] list_display = [ 'hostname', 'statistics_port', 'default_transfer_key' ]
class KeyAdmin(admin.ModelAdmin): 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) admin.site.register(Key, KeyAdmin)