让我们树立标准榜样
class Author(models.Model):
name = models.CharField(max_length=100)
class Book(models.Model):
title = models.CharField(max_length=100)
author = models.ForeignKey(Author)
#... Many other fields ...
On the admin interface from the Author
change page, I d like to be able to add/edit his Books
.
There you are going to tell me please RTFM and use a InlineModelAdmin.
But wait, as you can see there are "Many other fields" in Books
and it will not be easily editable.
我想象的是,能够简单地展示<代码>Author的改动页的图书标题,并提供链接,以补充或编辑他的书籍。 我如何能够这样做?