比方说,我有这样的模式: class Foo(models.Model):
bar = models.ForeignKey(Bar)
currency = models.ForeignKey(Currency) # currency is just an example
is_active = models.BooleanField()
现在假设foo是酒吧的内联
我正在组建一个satchmo应用程序的管理员。 Satchmo使用OneToOne关系来扩展基地Product模型,并且我想在一页上进行编辑。 可以将OneToOne关系作为内联?如果不是,最好的办法是将一些字段添加到我的管理员的给定页面,最终将保存到OneToOne关系中? 例如: class Product(models.Model):
name = models.CharField