uncloud/uncloud_vm/admin.py

16 lines
331 B
Python
Raw Normal View History

from django.contrib import admin
# Register your models here.
from uncloud_vm.models import *
2020-08-01 16:48:51 +00:00
class VMDiskInline(admin.TabularInline):
model = VMDiskProduct
class VMProductAdmin(admin.ModelAdmin):
inlines = [
VMDiskInline,
]
admin.site.register(VMProduct, VMProductAdmin)
admin.site.register(VMDiskProduct)