Passing parameters to inline form in django admin
问题 I have an admin class inheriting from ModelAdmin: class TemplateAdmin (admin.ModelAdmin): inlines = (TemplateAttributeInline, CompanyAttributeInline) list_display = ("name", "created", "updated","departments") list_filter = ['companies__company'] list_editable = ("departments",) search_fields = ("name", "companies__company",) exclude = ("companies",) save_as = True I want to pass a parameter to TemplateAttributeInline which will in turn then pass the parameter to TemplateAttributeForm . What