[Fixed]-How to insert data for multiple tables/models from the same page of django admin?


You need to define ShopCatAdmin as inheriting from an inline admin class, not the basic admin.

class ShopCatAdmin(admin.TabularInline):
    model = Shop_Category

(Note, Python style discourages underscores in class names; your models should be called ShopType and ShopCategory.)

Leave a comment