forked from uncloud/uncloud
15 lines
331 B
Python
15 lines
331 B
Python
from django.contrib import admin
|
|
|
|
# Register your models here.
|
|
from uncloud_vm.models import *
|
|
|
|
class VMDiskInline(admin.TabularInline):
|
|
model = VMDiskProduct
|
|
|
|
class VMProductAdmin(admin.ModelAdmin):
|
|
inlines = [
|
|
VMDiskInline,
|
|
]
|
|
|
|
admin.site.register(VMProduct, VMProductAdmin)
|
|
admin.site.register(VMDiskProduct)
|