Django admin - inline inlines (or, three model editing at once)

前端 未结 4 1395
北荒
北荒 2020-11-30 18:19

I\'ve got a set of models that look like this:

class Page(models.Model):
    title = models.CharField(max_length=255)

class LinkSection(models.Model):
    p         


        
4条回答
  •  醉酒成梦
    2020-11-30 18:26

    You can create a new class, similar to TabularInline or StackedInline, that is able to use inline fields itself.

    Alternatively, you can create new admin templates, specifically for your model. But that of course overrules the nifty features of the admin interface.

提交回复
热议问题