fromdjangoimportcontrib# from django.utils.translation import ugettext_lazy as _from.modelsimportDisk,DataStoreclassDiskAdmin(contrib.admin.ModelAdmin):list_display=('name','datastore')classDataStoreAdmin(contrib.admin.ModelAdmin):list_display=('name','path')contrib.admin.site.register(Disk,DiskAdmin)contrib.admin.site.register(DataStore,DataStoreAdmin)