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