from django.contrib import admin

from nodeconductor.iaas import models

admin.site.register(models.Instance)

@@ -70,41 +70,503 @@
 ls%0A%0A
-admin.site.register(models.Instanc
+%0Aclass FlavorInline(admin.TabularInline):%0A    model = models.Flavor%0A    extra = 1%0A%0A%0Aclass CloudAdmin(admin.ModelAdmin):%0A    inlines = (%0A        FlavorInline,%0A    )%0A    list_display = ('name', 'organisation')%0A    ordering = ('name', 'organisation')%0A%0A%0Aclass InstanceAdmin(admin.ModelAdmin):%0A    readonly_fields = ('template', 'state')%0A    ordering = ('hostname',)%0A%0A%0Aadmin.site.register(models.Cloud, CloudAdmin)%0Aadmin.site.register(models.Instance, InstanceAdmin)%0Aadmin.site.register(models.Templat
 e)%0A

Configure django admin for iaas models