uncloud/uncloud_pay/admin.py

15 lines
394 B
Python
Raw Normal View History

from django.contrib import admin
2020-06-21 11:46:54 +00:00
from uncloud_pay.models import Bill, Order, BillRecord, BillingAddress
2020-06-21 14:08:00 +00:00
class BillRecordInline(admin.TabularInline):
model = Bill.bill_records.through
2020-06-21 11:46:54 +00:00
2020-06-21 14:08:00 +00:00
class BillAdmin(admin.ModelAdmin):
inlines = [ BillRecordInline ]
;
2020-06-21 11:46:54 +00:00
admin.site.register(Bill, BillAdmin)
admin.site.register(Order)
admin.site.register(BillRecord)
admin.site.register(BillingAddress)