clean up admin panel, include columns for fields in models
This commit is contained in:
parent
ae0830436a
commit
55a99dd7f2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue