uncloud/uncloud_pay/admin.py
2020-06-21 16:42:55 +02:00

14 lines
393 B
Python

from django.contrib import admin
from uncloud_pay.models import Bill, Order, BillRecord, BillingAddress
class BillRecordInline(admin.TabularInline):
model = Bill.bill_records.through
class BillAdmin(admin.ModelAdmin):
inlines = [ BillRecordInline ]
admin.site.register(Bill, BillAdmin)
admin.site.register(Order)
admin.site.register(BillRecord)
admin.site.register(BillingAddress)