Commits

Robert Myers committed 153822c

fixing admin interface

  • Participants
  • Parent commits c116bff
  • Branches worker

Comments (0)

Files changed (1)

cannula/api/djangodb/admin.py

 
 
 class ServerAdmin(admin.ModelAdmin):
-    list_display = ['name', 'ipaddr', 'port', 'credential', 'platform_class']
+    list_display = ['name', 'ipaddr', 'port', 'platform_class']
     ordering = ['name']
 admin.site.register(Server, ServerAdmin)
 
 
 class ClusterServerInline(admin.TabularInline):
-    model = ClusterServer
+    model = Server
 
 class ClusterAdmin(admin.ModelAdmin):
-    list_display = ['name', 'hostname', 'jump_host', 'servers_display']
+    list_display = ['name', 'servers_display']
     inlines = [ClusterServerInline]
     actions = ['restart']
 
 admin.site.register(Cluster, ClusterAdmin)
 
 
-class CredentialAdmin(admin.ModelAdmin):
-    list_display = ['username']
-admin.site.register(Credential, CredentialAdmin)
-
-
 class PackageAdmin(admin.ModelAdmin):
     list_display = ['name', 'tool_class', 'deploy_strategy', 'status']
 admin.site.register(Package, PackageAdmin)