from django.contrib import admin

from models import Job


class JobAdmin(admin.ModelAdmin):
    date_hierarchy = "created"
    list_display = ("molecule", "name", "email", "credential", "nodes",
                    "walltime", "jobid", "created", "started", "ended")

admin.site.register(Job, JobAdmin)

@@ -49,16 +49,25 @@
 port Job
+, Cluster
 %0A%0A%0Aclass
@@ -306,8 +306,140 @@
 bAdmin)%0A
+%0A%0Aclass ClusterAdmin(admin.ModelAdmin):%0A    list_display = (%22name%22, %22hostname%22, %22port%22)%0A%0Aadmin.site.register(Cluster, ClusterAdmin)%0A

Add cluster to django admin