Make the admin UI more useful showing fields in key and zone
This commit is contained in:
parent
246373a274
commit
7314c6daf8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue