Related lookup field foreign key doesn't work in inline Django
问题 i've a problem with my tabularinline field. I have model like this class Product(models.Model): .... class Pemesanan(models.Model): produks = models.ManyToManyField(Product, verbose_name=u"Kode Produk", through='Foo') class Foo(models.Model): product = models.ForeignKey(Product) ... Class Foo is an intermediary class (manytomany field) with class Pemesanan and Class Product. It has a foreign key field to Class Pemesanan. Class Foo is displayed as an tabularinline in change_form template like