[Fixed]-What is the best way of saving related model in django admin?

1👍

Have a look at InlineModelAdmin objects

This will do it for you.

class CompanyAttributesInline(admin.StackedInline):
    model = CompanyAttributes

class CompanyAdmin(admin.ModelAdmin):
    ...
    inlines = (CompanyAttributesInline,)

Leave a comment