📌  相关文章
📜  django-admin - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:20.097000             🧑  作者: Mango

代码示例3
from django.contrib import admin

class BookInline(admin.TabularInline):
    model = Book

class AuthorAdmin(admin.ModelAdmin):
    inlines = [
        BookInline,
    ]