We have something like the following:
class SecondaryItemInline(admin.TabularInline):
model = SecondaryItem
form = SecondaryItemForm
class PrimaryItemAdmin(admin.ModelAdmin):
inlines = SecondaryItemInline,
What I would like to do is to add a custom message to the default Django admin success message from the clean method of SecondaryItemForm
. I am seeing how to do this from PrimaryItemAdmin
using save_model
, but not seeing anything on doing this from an inline form. Any ideas?