首页 > TAG信息列表 > InlineModelAdmin

Django admin InlineModelAdmin

InlineModelAdmin class InlineModelAdmin class TabularInline class StackedInline 举例,有两个Model: from django.db import models class Author(models.Model): name = models.CharField(max_length=100) class Book(models.Model): author = models.ForeignKey(Aut