📅  最后修改于: 2022-03-11 14:51:20.097000             🧑  作者: Mango
from django.contrib import admin
class BookInline(admin.TabularInline):
model = Book
class AuthorAdmin(admin.ModelAdmin):
inlines = [
BookInline,
]